1

I have a database mysql where I have some string that have this character: "§§STRING§§". So I do this:

$string = explode(§§, $app);

Probably mysql have a different format because this string isn't exploded. What I have to do?

Edit: I catch data from database. $app is a variable created with $row['column']. HOw can I explode?

1
  • 1
    Do you see the § in your browser or in the DB? If it is in the browser the entity value could be stored in the DB. Commented May 25, 2015 at 18:35

1 Answer 1

1

Try doing this:

$string = explode('§§', $app);

Add ''(single quote) for your character.

Sign up to request clarification or add additional context in comments.

2 Comments

You could also use double quotes doesn't matter
Yes single or double any of your choice.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.