|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-06-01 20:22 UTC] stas at cvs dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 19 06:00:01 2025 UTC |
in a string check routin whitch checks the validity of characters entered in a POST field i used while () with substr(). If the string that substr() parses has 0 (zero) in it, while() exits while it should not. e.g. $i=0; while ($ch=substr($field_name,$i) { print"$ch"; $i++; } if $field_name has a 0 in it, while() exits while it should exit with another false signal other than 0 (null maybe?)