Jump to content

How do I...


thenext88

Recommended Posts

Thank you very much ;D

 

I also have another question. If I have a sentences in a mysql database:

 

the color is - blue "1"

the color is - red "4"

the color is - green "1"

 

$sentence = $row['color'];

 

Is there anyway I could make an output where it only displays the content between the - and the first " ? Reason I'm asking is because Substr wouldn't work in this case with varying amounts of letters.

 

I know this is totally random but I'm trying to filter out content (and I can't use filter commands because I'm on php 4.4.2)

 

 

Link to comment
https://forums.phpfreaks.com/topic/42455-how-do-i/#findComment-205997
Share on other sites

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.