Jump to content

[SOLVED] Notice: Array to string conversion.


physaux

Recommended Posts

My code:

$rawstring= "Something9123toasdkln897";

$explosionarray= array();

$explosionarray=explode("to", $rawstring);//THISLINE.

 

And i get this:

Notice: Array to string conversion

 

Here is an example from http://php.net/manual/en/function.explode.php

 

$pizza  = "piece1 piece2 piece3 piece4 piece5 piece6";

$pieces = explode(" ", $pizza);

echo $pieces[0]; // piece1

 

i could swear that i am doing the exact same thing, but i get a "Notice"!!

Any way to get rid of it???

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.