diff options
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -57,9 +57,9 @@ More complicated structured can be handled by PHP-CPP as well. If you would like a nested associative array from your function, you can do so too: ```c -PhpCpp::Value get_complex_array() +Php::Value get_complex_array() { - PhpCpp::Value r; + Php::Value r; r["a"] = 123; r["b"] = 456; r["c"][0] = "nested value"; @@ -70,7 +70,7 @@ PhpCpp::Value get_complex_array() The C++ function above is equivalent to the following function in PHP: -```c +```php function get_complex_array() { return array( @@ -82,4 +82,4 @@ function get_complex_array() ``` More information and more examples are available on the official website: -http://www.php-cpp.com.
\ No newline at end of file +http://www.php-cpp.com. |