Re: Re: why does this not work?

From: Date: Tue, 27 Sep 2005 21:58:51 +0000
Subject: Re: Re: why does this not work?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-223324@lists.php.net to get a copy of this message
bit off the point but... Oliver Grätz wrote:
Ross schrieb:
$width = " <script> document.write(screen.width); </script>"; //$ross= intval($width);
Yes, this is and will always be zero, because you are evaluating a
for his paricular $width string, yes.
string to an integer value.
$butThereIsAlwaysAtLeast = "1 exception to every rule"; var_dump(intval($butThereIsAlwaysAtLeast)); good points about CSS/design btw :-) ...and solving the OPs problem.

« previous php.general (#223324) next »