note 47069 added to language.types.boolean

From: Date: Tue, 02 Nov 2004 00:02:01 +0000
Subject: note 47069 added to language.types.boolean
Groups: php.notes 
Request: Send a blank email to php-notes+get-79474@lists.php.net to get a copy of this message
Actually, I apologize for the previous post I made. After making that post and actually implementing my code, I found it to be incorrect. This is something that has always worked for me in Macromedia's Flash MX. I thought it worked in PHP for me in previous scripts I've made, but alas I was mistaken. It appears the Discord method is the method. ;) I would just limit it tho a bit. $bool = ($bool=='yes' or $bool=='true' or $bool=='correct' or $bool=='on' or $bool===true); ---- Manual Page -- http://www.php.net/manual/en/language.types.boolean.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+47069 Delete -- http://master.php.net/manage/user-notes.php?action=delete+47069&report=yes Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+47069&report=yes&reason=bad+code Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+47069&report=yes&reason=spam Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+47069&report=yes&reason=useless+example Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+47069&report=yes&reason=contains+commercial+links Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+47069&report=yes&reason=useless+note Reject -- http://master.php.net/manage/user-notes.php?action=reject+47069&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#79474) next »