Php Select Text Starting At Part Of String
- Forums
- PHP
- Php Select Text Starting At Part Of String
i have a simple script i am trying to create. but its very repetitive and i want to be able to select and remove some text starting at a certain point in the string. php select certain text from a string [2100], Last Updated: Mon Jun 24, 2024
Williever
Sun Sep 05, 2010
1 Comments
643 Visits
i have a simple script i am trying to create. but its very repetitive and i want to be able to select and remove some text starting at a certain point in the string.
for example if i have a string like this:
$foo = "whats your favorite color: a)red b)blue c)green";
$questions= "whats your favorite color:";
$answers= "a)red b)blue c)green";
as you can see from my $foo string, i want to be able to break it up into two separate string one to be the $question and another to be the $answers
how can i do this?
https://www.webune.com/forums/20100905cgcc.html