|
Posted by frizzle on 03/18/06 02:03
Hi group.
I have tho following code.
$_GET['artile'] looks like this: /2006/03/lorem_ipsum
$locationinfo = explode('/', trim( $_GET['article'] , '/') );
list( $article_year, $article_month, $article_url ) = $locationinfo;
echo '<br>year: '.(($article_year === NULL)? 'null': $article_year);
echo '<br>month: '.(($article_month === NULL)? 'null': $article_month);
echo '<br>article: '.(($article_url === NULL)? 'null': $article_url);
The weird thing is, if $_GET['article'] is empty, $article_year isn't
NULL, but the rest is. This doesn't make any sense to me ...
Frizzle.
[Back to original message]
|