note 73224 deleted from language.types by mazzanet

From: Date: Wed, 14 Feb 2007 09:29:53 +0000
Subject: note 73224 deleted from language.types by mazzanet
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-123353@lists.php.net to get a copy of this message
Note Submitter: René Vargas vpreal * gmail.com Reason: non-english ---- This is a note that you can have it in account if these working with String variables. For example <?php $v1 = "0010"; echo "Val: ". (int) $v1; ?> Output: Val: 10 Another example <?php $v1 = "0010LoQueSea"; echo "Val: ". (int) $v1; ?> Output: Val: 10 Or <?php $v1 = "001Y0LoQueSea"; echo "Val: ". (int) $v1; ?> Output: Val: 1 What does is to look for of left right a coherent value, in this case a type of integer.

« previous php.notes (#123353) next »