note 29113 deleted from function.strval by victor
| From: | victor@php.net | Date: | Mon, 03 Feb 2003 12:36:40 +0000 |
| Subject: | note 29113 deleted from function.strval by victor | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-43322@lists.php.net to get a copy of this message | ||
example
$temp[0]="2";
$temp[1]="4";
$temp[2]="2";
$temp[3]="5";
$temp[4]="8";
$temp[5]="h31k";
$temp[6]="3";
$temp[7]="12";
$temp[8]="8";
$temp[9]="3";
$temp[10]="2";
sort ($temp);
for($zaehler=0;$zaehler<count($temp);$zaehler++)
{
$tmp=$temp[$zaehler];
$tmp2=$tmp;
settype($tmp2, "integer");
$tmp2=strval($tmp2);
if($tmp!=$tmp2){echo"hi---";}
echo"$tmp-$tmp2 <br>";
}
if you dont use STRVAL this code does never print the "hi---"