note 75066 added to function.substr

From: Date: Thu, 10 May 2007 16:08:12 +0000
Subject: note 75066 added to function.substr
Groups: php.notes 
Request: Send a blank email to php-notes+get-126392@lists.php.net to get a copy of this message
The functions submitted below are a waste of time and memory. To convert a string to an integer or a trimmed float, use the built in conversion instead of parsing the string, e.g : <?php $x = "27.2400"; echo (float)$x; // 27.24 echo (int)$x; // 27 ?> ---- Server IP: 217.174.196.197 Probable Submitter: 82.237.177.72 ---- Manual Page -- http://www.php.net/manual/en/function.substr.php Edit -- https://master.php.net/note/edit/75066 Del: integrated -- https://master.php.net/note/delete/75066/integrated Del: useless -- https://master.php.net/note/delete/75066/useless Del: bad code -- https://master.php.net/note/delete/75066/bad+code Del: spam -- https://master.php.net/note/delete/75066/spam Del: non-english -- https://master.php.net/note/delete/75066/non-english Del: in docs -- https://master.php.net/note/delete/75066/in+docs Del: other reasons-- https://master.php.net/note/delete/75066 Reject -- https://master.php.net/note/reject/75066 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#126392) next »