оборачиваем элементы ассоциативного массива в фигурные скобки - PHP Online
Form of PHP Sandbox
Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php
in the places where the PHP script should be executed.
Result of php executing
Full code of оборачиваем элементы ассоциативного массива в фигурные скобки.php
- <?php
- $a = array(
- "ID_key"=>"3H/7ypYgFfQsL/w=",
- "NameCharacter"=>"Dududu",
- "PersMeshIndex"=>"2"
- );
- $query = "UPDATE
- persdata
- SET
- NameCharacter = {$a['NameCharacter']},
- PersMeshIndex = {$a['PersMeshIndex']}
- WHERE
- 'id_key' = {$a['ID_key']};";
- echo $query;
File Description
- оборачиваем элементы ассоциативного массива в фигурные скобки
- PHP Code
- 24 Apr-2022
- 440 Bytes
You can Share it:
Latest PHP Pastes