-3
$MyValue = "1111,5555";

I want result this.

$Value_1 = "1111";
$Value_2 = "5555";

Please help me.

Ende Neu
15.8k5 gold badges61 silver badges72 bronze badges
asked Aug 11, 2014 at 19:36
2
  • 1
    How about explode()? Commented Aug 11, 2014 at 19:38
  • 1
    Please try rephrase your question Commented Aug 11, 2014 at 19:39

1 Answer 1

1

You can use explode():

$MyValue = '1111,5555';
$MyValue = explode(',', $MyValue);
echo $MyValue[0]; //1111
echo $MyValue[1]; //5555

See demo

answered Aug 11, 2014 at 19:38
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.