Jump to content

explode bug


lipun4u

Recommended Posts

another method for: Explode

 

   //header("Content-Type: Text/plain");
$name="Thisname! Is an asshole";
$z=explode("!", $name);
echo "$z[0] $z[1]!";

 

We're using ! as the unique character

$z[0] being before ! $z[1] being after !

 

How does that help him at all?

Link to comment
https://forums.phpfreaks.com/topic/176471-explode-bug/#findComment-930227
Share on other sites

Obviously its showing him how to use more of the explode function

he probably at one point wants to know how to display the data.

without it looking like this:

Array ( [0] => asit [1] => is [2] => an [3] => asshole ) 

i was just showing him more functionality in the explode call.

 

Link to comment
https://forums.phpfreaks.com/topic/176471-explode-bug/#findComment-930228
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.