note 73224 added to language.types

From: Date: Tue, 13 Feb 2007 23:55:22 +0000
Subject: note 73224 added to language.types
Groups: php.notes 
Request: Send a blank email to php-notes+get-123344@lists.php.net to get a copy of this message
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. ---- Server IP: 69.147.83.197 Probable Submitter: 200.87.159.23 ---- Manual Page -- http://www.php.net/manual/en/language.types.php Edit -- https://master.php.net/note/edit/73224 Del: integrated -- https://master.php.net/note/delete/73224/integrated Del: useless -- https://master.php.net/note/delete/73224/useless Del: bad code -- https://master.php.net/note/delete/73224/bad+code Del: spam -- https://master.php.net/note/delete/73224/spam Del: non-english -- https://master.php.net/note/delete/73224/non-english Del: in docs -- https://master.php.net/note/delete/73224/in+docs Del: other reasons-- https://master.php.net/note/delete/73224 Reject -- https://master.php.net/note/reject/73224 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#123344) next »