From d0d062b4a05a9eb64b8d2e6d038af96ac532e4b3 Mon Sep 17 00:00:00 2001 From: valmat Date: Thu, 27 Mar 2014 01:19:12 +0600 Subject: Added new tests. Due to support zts broke the ability to run tests without installation - fixed. --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 601487a..17d1b62 100644 --- a/README.md +++ b/README.md @@ -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. -- cgit v1.2.3