svn: /phpdoc/en/trunk/reference/var/functions/ is-buffer.xml is-numeric.xml is-object.xml strval.xml

From: Date: Wed, 03 Feb 2010 14:13:52 +0000
Subject: svn: /phpdoc/en/trunk/reference/var/functions/ is-buffer.xml is-numeric.xml is-object.xml strval.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-6012@lists.php.net to get a copy of this message
rquadling Wed, 03 Feb 2010 14:13:52 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=294415 Log: W/S tabs Changed paths: U phpdoc/en/trunk/reference/var/functions/is-buffer.xml U phpdoc/en/trunk/reference/var/functions/is-numeric.xml U phpdoc/en/trunk/reference/var/functions/is-object.xml U phpdoc/en/trunk/reference/var/functions/strval.xml Modified: phpdoc/en/trunk/reference/var/functions/is-buffer.xml =================================================================== --- phpdoc/en/trunk/reference/var/functions/is-buffer.xml 2010-02-03 14:13:35 UTC (rev 294414) +++ phpdoc/en/trunk/reference/var/functions/is-buffer.xml 2010-02-03 14:13:52 UTC (rev 294415) @@ -53,25 +53,25 @@ <?php // Declare some variables with different types $types = array( - 'unicode' => 'Unicode string', - 'binary' => b'Binary string', - 'resource' => fopen('php://stdin', 'r'), - 'integer' => 42 - ); + 'unicode' => 'Unicode string', + 'binary' => b'Binary string', + 'resource' => fopen('php://stdin', 'r'), + 'integer' => 42 + ); // Test which types thats a buffer foreach($types as $type => $value) { - if(is_buffer($value)) - { - echo $type . ' is a either a unicode or binary string'; - } - else - { - echo $type . ' is not a buffer value'; - } + if(is_buffer($value)) + { + echo $type . ' is a either a unicode or binary string'; + } + else + { + echo $type . ' is not a buffer value'; + } - echo PHP_EOL; + echo PHP_EOL; } ?> ]]> Modified: phpdoc/en/trunk/reference/var/functions/is-numeric.xml =================================================================== --- phpdoc/en/trunk/reference/var/functions/is-numeric.xml 2010-02-03 14:13:35 UTC (rev 294414) +++ phpdoc/en/trunk/reference/var/functions/is-numeric.xml 2010-02-03 14:13:52 UTC (rev 294415) @@ -56,24 +56,24 @@ <![CDATA[ <?php $tests = Array( - "42", - 1337, - "1e4", - "not numeric", - Array(), - 9.1 - ); + "42", + 1337, + "1e4", + "not numeric", + Array(), + 9.1 + ); foreach($tests as $element) { - if(is_numeric($element)) - { - echo "'{$element}' is numeric", PHP_EOL; - } - else - { - echo "'{$element}' is NOT numeric", PHP_EOL; - } + if(is_numeric($element)) + { + echo "'{$element}' is numeric", PHP_EOL; + } + else + { + echo "'{$element}' is NOT numeric", PHP_EOL; + } } ?> ]]> Modified: phpdoc/en/trunk/reference/var/functions/is-object.xml =================================================================== --- phpdoc/en/trunk/reference/var/functions/is-object.xml 2010-02-03 14:13:35 UTC (rev 294414) +++ phpdoc/en/trunk/reference/var/functions/is-object.xml 2010-02-03 14:13:52 UTC (rev 294415) @@ -53,12 +53,12 @@ // array from our object function get_students($obj) { - if(!is_object($obj)) - { - return(false); - } + if(!is_object($obj)) + { + return(false); + } - return($obj->students); + return($obj->students); } // Declare a new class instance and fill up Modified: phpdoc/en/trunk/reference/var/functions/strval.xml =================================================================== --- phpdoc/en/trunk/reference/var/functions/strval.xml 2010-02-03 14:13:35 UTC (rev 294414) +++ phpdoc/en/trunk/reference/var/functions/strval.xml 2010-02-03 14:13:52 UTC (rev 294415) @@ -61,10 +61,10 @@ <?php class StrValTest { - public function __toString() - { - return __CLASS__; - } + public function __toString() + { + return __CLASS__; + } } // Prints 'StrValTest'

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