hey I'm starting to like this forum.π nice people and fast help Ok another stupid question. How do you find a string which contain a specific character like ":\" or anything i want it to have it set to. I did use explode to explode a string into small pieces than split() to make it each word, and now I need to print them, each time I have a string with ":\" which full will be "directory name " like "C:\" hi need to put it in another line. how to do that?π search a string for a specific character. Thank you again Lukas
Lemme replay to my messaye on my own. well i figured that i can do it by counting characters in the string and put a loop to check for specific character, or two charcaters at once.π let me try it, but if you have any other idea please let me know. Lukas
yeah answering to my own question but I'm searching thought the PHP.net site and finding new things. can you use strstr() function? I'm trying to use it but it's not working? If you have any idea how, please lemme know Thnx Lukas
Are you reading the manual? (that's only 2 posts too lateπ )
use strpos() to find if your string contains some chars.
You could also use regular expressions.