svn: /phpdoc/en/trunk/reference/lua/ lua/assign.xml lua/call.xml lua/eval.xml lua/registercallback.xml luaclosure/invoke.xml

From: Date: Thu, 12 Jan 2012 11:59:28 +0000
Subject: svn: /phpdoc/en/trunk/reference/lua/ lua/assign.xml lua/call.xml lua/eval.xml lua/registercallback.xml luaclosure/invoke.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-9426@lists.php.net to get a copy of this message
vrana Thu, 12 Jan 2012 11:59:28 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=322129 Log: Examples whitespace, outputs similar Changed paths: U phpdoc/en/trunk/reference/lua/lua/assign.xml U phpdoc/en/trunk/reference/lua/lua/call.xml U phpdoc/en/trunk/reference/lua/lua/eval.xml U phpdoc/en/trunk/reference/lua/lua/registercallback.xml U phpdoc/en/trunk/reference/lua/luaclosure/invoke.xml Modified: phpdoc/en/trunk/reference/lua/lua/assign.xml =================================================================== --- phpdoc/en/trunk/reference/lua/lua/assign.xml 2012-01-12 11:55:31 UTC (rev 322128) +++ phpdoc/en/trunk/reference/lua/lua/assign.xml 2012-01-12 11:59:28 UTC (rev 322129) @@ -58,16 +58,16 @@ <programlisting role="php"> <![CDATA[ <?php - $lua = new Lua(); - $lua->assign("php_var", array(1=>1, 2, 3)); //lua table index begin with 1 - $lua->eval(<<<CODE +$lua = new Lua(); +$lua->assign("php_var", array(1=>1, 2, 3)); //lua table index begin with 1 +$lua->eval(<<<CODE print(php_var); CODE ); ?> ]]> </programlisting> - &example.outputs.similar; + &example.outputs; <screen> <![CDATA[ Array Modified: phpdoc/en/trunk/reference/lua/lua/call.xml =================================================================== --- phpdoc/en/trunk/reference/lua/lua/call.xml 2012-01-12 11:55:31 UTC (rev 322128) +++ phpdoc/en/trunk/reference/lua/lua/call.xml 2012-01-12 11:59:28 UTC (rev 322129) @@ -77,9 +77,9 @@ <?php $lua = new Lua(); $lua->eval(<<<CODE - function dummy(foo, bar) - print(foo, ",", bar) - end + function dummy(foo, bar) + print(foo, ",", bar) + end CODE ); $lua->call("dummy", array("Lua", "geiliable\n")); @@ -88,7 +88,7 @@ ?> ]]> </programlisting> - &example.outputs.similar; + &example.outputs; <screen> <![CDATA[ Lua,geiliable Modified: phpdoc/en/trunk/reference/lua/lua/eval.xml =================================================================== --- phpdoc/en/trunk/reference/lua/lua/eval.xml 2012-01-12 11:55:31 UTC (rev 322128) +++ phpdoc/en/trunk/reference/lua/lua/eval.xml 2012-01-12 11:59:28 UTC (rev 322129) @@ -50,15 +50,15 @@ <programlisting role="php"> <![CDATA[ <?php - $lua = new Lua(); - $lua->eval(<<<CODE - print(2); +$lua = new Lua(); +$lua->eval(<<<CODE + print(2); CODE ); ?> ]]> </programlisting> - &example.outputs.similar; + &example.outputs; <screen> <![CDATA[ 2 Modified: phpdoc/en/trunk/reference/lua/lua/registercallback.xml =================================================================== --- phpdoc/en/trunk/reference/lua/lua/registercallback.xml 2012-01-12 11:55:31 UTC (rev 322128) +++ phpdoc/en/trunk/reference/lua/lua/registercallback.xml 2012-01-12 11:59:28 UTC (rev 322129) @@ -57,16 +57,16 @@ <programlisting role="php"> <![CDATA[ <?php - $lua = new Lua(); - $lua->registerCallback("echo", "var_dump"); - $lua->eval(<<<CODE +$lua = new Lua(); +$lua->registerCallback("echo", "var_dump"); +$lua->eval(<<<CODE echo({1, 2, 3}); CODE ); ?> ]]> </programlisting> - &example.outputs.similar; + &example.outputs; <screen> <![CDATA[ array(3) { Modified: phpdoc/en/trunk/reference/lua/luaclosure/invoke.xml =================================================================== --- phpdoc/en/trunk/reference/lua/luaclosure/invoke.xml 2012-01-12 11:55:31 UTC (rev 322128) +++ phpdoc/en/trunk/reference/lua/luaclosure/invoke.xml 2012-01-12 11:59:28 UTC (rev 322129) @@ -58,21 +58,21 @@ <programlisting role="php"> <![CDATA[ <?php - $lua = new Lua(); - $closure = $lua->eval(<<<CODE - return (function () +$lua = new Lua(); +$closure = $lua->eval(<<<CODE + return (function () print("hello world") - end) + end) CODE ); - $lua->call($closure); - /* after PHP 5.3 */ - $closure(); +$lua->call($closure); +/* after PHP 5.3 */ +$closure(); ?> ]]> </programlisting> - &example.outputs.similar; + &example.outputs; <screen> <![CDATA[ hello worldhello world

« previous php.doc.cvs (#9426) next »