note 123814 added to function.var-export
| From: | beverasrilakshmi at gmail dot com | Date: | Wed, 01 May 2019 20:24:57 +0000 |
| Subject: | note 123814 added to function.var-export | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-210882@lists.php.net to get a copy of this message | ||
Just for fun, trying to understand the definition of "returns parsable string"....any type
of variable passed to var_export, the return value will be a typecasted as string...
<?php
$var = 1;
var_dump($var); //type is int as expected
echo "<br>";
$var_after_export = var_export($var,true); //returning $var will now makes it a string
var_dump($var_after_export);
?>
----
Server IP: 208.43.231.9
Probable Submitter: 119.81.81.244 (proxied: 217.164.37.155)
----
Manual Page -- http://php.net/manual/en/function.var-export.php
Edit -- https://master.php.net/note/edit/123814
Del: integrated -- https://master.php.net/note/delete/123814/integrated
Del: useless -- https://master.php.net/note/delete/123814/useless
Del: bad code -- https://master.php.net/note/delete/123814/bad+code
Del: spam -- https://master.php.net/note/delete/123814/spam
Del: non-english -- https://master.php.net/note/delete/123814/non-english
Del: in docs -- https://master.php.net/note/delete/123814/in+docs
Del: other reasons-- https://master.php.net/note/delete/123814
Reject -- https://master.php.net/note/reject/123814
Search -- https://master.php.net/manage/user-notes.php