note 45769 added to function.urlencode
| From: | neugey at cox dot net | Date: | Fri, 17 Sep 2004 20:51:37 +0000 |
| Subject: | note 45769 added to function.urlencode | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-76895@lists.php.net to get a copy of this message | ||
Be careful when encoding strings that came from simplexml in PHP 5. If you try to urlencode a
simplexml object, the script tanks.
I got around the problem by using a cast.
$newValue = urlencode( (string) $oldValue );
----
Manual Page -- http://www.php.net/manual/en/function.urlencode.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+45769
Delete -- http://master.php.net/manage/user-notes.php?action=delete+45769&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+45769&report=yes
Search -- http://master.php.net/manage/user-notes.php