Jump to content

Supplying multiple agrs to explode.


leke

Recommended Posts

Basically, no you can't. But you could first replace all of those with a specific character, like '#'. Then explode by that.

 

$characters = array(" ", ".", ",", "!", "?");
$splitSubmission = str_replace($characters, "#", $form_submission);
$splitSubmission = explode("#", $splitSubmission);

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.