[ PHP ] How do I select a word from a string?
#2

I am not sure what you exactly want, do you want a function get fetch a specific word of the sentence ?

Either way you could use sscanf like that
pawn Код:
new word1[32], word2[32];
sscanf("Lunoxx sold a car", "s{ss}s", word1, word2);
Reply


Messages In This Thread
[ PHP ] How do I select a word from a string? - by Lunoxel - 08.10.2015, 16:40
AW: [ PHP ] How do I select a word from a string? - by Nero_3D - 08.10.2015, 18:06
Re: [ PHP ] How do I select a word from a string? - by Lunoxel - 08.10.2015, 18:32
Re: [ PHP ] How do I select a word from a string? - by Ahmad45123 - 08.10.2015, 18:54

Forum Jump:


Users browsing this thread: 1 Guest(s)