You are here: spaces in array_keys($_GET)? « PHP Programming Language « IT news, forums, messages
spaces in array_keys($_GET)?

Posted by yawnmoth on 12/18/05 08:24

Say I have the following script - test.php:

<?
if (count($_GET) != 0)
{
foreach(array_keys($_GET) as $var)
{
echo "$var<br />";
}
}
?>

Is it possible for $var to contain a space? If I call "test.php?this
is=a test" it gets turned into "test.php?this%20is=a%20test" by the
browser and the output of the above is "this_is" - not "this is". If I
call "test.php?this+is=a+test", the output is still "this_is".

I'm gonna guess it isn't possible - I just want to make sure.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация