This question already has an answer here:
I need to switch on E_ALL and get the in the title mentioned warning, when I am exploding the $_GET string:
$input = explode( '/', $_GET['string'] );
Where does that come from? Is it the missing 3rd parameter (limit) for explode ? I want all entries.
Cheers
</div>
You need to make use of the isset
construct first.
<?php
if (isset($_GET['string'])) {
$input = explode('/', $_GET['string']);
} else {
echo "The string was not passed!";
}