Re: Re: why does this not work?
| From: | Jochem Maas | 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:for his paricular $width string, yes.$width = " <script> document.write(screen.width); </script>"; //$ross= intval($width);Yes, this is and will always be zero, because you are evaluating a
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.