Jump to content

Baffling explode problem


omtay38

Recommended Posts

I'm tearing my hair out over this:

 

<?php
     $string = "foo-bar";
     $array = explode("-", $string);
     print_r($array);
?>

 

Returns an empty page.

(This started off as a more complex problem and I narrowed it down to this simple statement).

 

I recently did a fresh install of php using entropy's package but my other code (using the explode function in several areas) seems to be working fine.

 

Any thoughts?

 

Link to comment
https://forums.phpfreaks.com/topic/119781-baffling-explode-problem/
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.