Examples whitespace, outputs similar

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@322129 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Jakub Vrana 2012-01-12 11:59:28 +00:00
parent 4aaf5b8ba0
commit 9b2d0005f7
5 changed files with 24 additions and 24 deletions

View file

@ -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

View file

@ -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 @@ var_dump($lua->call(array("table", "concat"), array(array(1=>1, 2=>2, 3=>3), "-"
?>
]]>
</programlisting>
&example.outputs.similar;
&example.outputs;
<screen>
<![CDATA[
Lua,geiliable

View file

@ -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

View file

@ -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) {

View file

@ -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