note 103495 rejected from function.explode by danbrown
| From: | danbrown@php.net | Date: | Fri, 15 Apr 2011 19:25:52 +0000 |
| Subject: | note 103495 rejected from function.explode by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-178900@lists.php.net to get a copy of this message | ||
Note Submitter: imzers at imzers dot org
----
I have source like this:
<?php
// $topic_id defined from $_REQUEST['topic_id'];
// $page defined from explode(';', $_REQUEST['topic_id']);
if (isset($_REQUEST['topic_id'])) {
$topic_id = $_REQUEST['topic_id'];
list($topic_id, $page) = array_map('intval', array_pad(explode(';',
$topic_query), 2, 0));
}
?>
if i try open it form web browser with example:
http://server.com/script.php?topic_id=3;4
still normal
but if i try open with http://server.com/script.php?topic_id[]=3;4
it's found error:
Notice: Array to string conversion