ellandrd
asked on
URL value extraction
ive got a string like this:
$string = 'Clearly describe your <a href="">question</a> or problem, along with <a href="">specific information</a> such as <a href="">product names</a>, OS, and any error messages.';
how can i extract all the values between <a></a> from the above string? for example the values from the above string should be: question, specific information & product names.
$string = 'Clearly describe your <a href="">question</a> or problem, along with <a href="">specific information</a> such as <a href="">product names</a>, OS, and any error messages.';
how can i extract all the values between <a></a> from the above string? for example the values from the above string should be: question, specific information & product names.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
yes and the example extracts them all, Haven't you tried it or do you get results which sould not be in the result?
ASKER
my results are:
Array ( [0] => Array ( [0] => Google ) [1] => Array ( [0] => Google ) )
so in order to print out info i have to use: print_r();
Array ( [0] => Array ( [0] => Google ) [1] => Array ( [0] => Google ) )
so in order to print out info i have to use: print_r();
ASKER
got it to display how i want it... thank you
ASKER