RE: Re: String to Boolean

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Sylvano,
I think you will get very little response to your query because the nature
of what you are trying to do is completely wrong.  Back up a bit and
describe why you think you need to parse a string to determine true or
false.

All I can think of is that you are posting a form with various selection
criteria obtained from several listboxes set to TRUE or FALSE.  There must
be a better way of handling the user interface, or these responses, rather
than parsing them as strings.

Give us a bit more information.

Brian

-----Original Message-----
From: Jean-Sylvain Ndjeukoua [mailto:sylvano3@xxxxxxxxx] 
Sent: 27 October 2005 05:15
To: php-objects@xxxxxxxxxxxxxxx
Subject: Ant: Re:  String to Boolean


hi DF Yeah

i want a function to solve this kind of operation

boolean function (string "TRUE && FLASE")

We kann have all Gatter &&,||,....

for exemple this function ("TRUE && FLASE") return FALSE




hi
--- DF Yeah <df_yeah@xxxxxxxxx> schrieb:

> You do not need a specific function.
> 
> 
>
http://www.php.net/manual/en/language.types.boolean.php
> 
> the empty string, and the string  "0" is consider false.
> any other value is true.
> 
> 
> eg.
> $strText = "something";
> $blnText = (boolean) $strText;
> // it will be true
> 
> $strText = "";
> $blnText = (boolean) $strText;
> // it will be false
> 
> 
> 
> --- sylvano3 <sylvano3@xxxxxxxxx> wrote:
> 
> > Hi,
> > im lookin for a php-function that tranform a
> string
> > to a boolean
> > 
> > ie:  strtoboolean(string s) return TRUE or FALSE
> > 
> > 
> > 
> > 
> > 
> > 
> 
> 
> 
> 		
> __________________________________
> Start your day with Yahoo! - Make it your home page!
> 
> http://www.yahoo.com/r/hs
> 



	

	
		
___________________________________________________________
Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden:
http://mail.yahoo.de





PHP Data object relational mapping generator - http://www.meta-language.net/

Yahoo! Groups Links



 



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/saFolB/TM
--------------------------------------------------------------------~-> 

PHP Data object relational mapping generator - http://www.meta-language.net/ 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-objects/

<*> To unsubscribe from this group, send an email to:
    php-objects-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux