This is a discussion on Substring of a string from a particular character within the PHP Programming forums, part of the Web Development category; how to get substring of a string starting from a particular character in PHP?...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| am using strpbrk function but i cant get the correct string from the character list...
__________________ $enthil Last edited by $enthil : 01-02-2008 at 02:28 AM. |
| |||
| I have done like this Quote:
but, the output is Quote:
__________________ $enthil |
| |||
| strpbrk function returns a string starting from the character found For ur example, 'i' is matched first, thats why its returning the string starting from the character 'i'... This function always gives priority for the first matching character.. |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to get ASCII Value of a first character in a string in php? | $enthil | PHP Programming | 1 | 01-06-2008 11:48 PM |
| What is diffrenece between string.compare and string.compareordinal | shaalini | ASP and ASP.NET Programming | 3 | 12-28-2007 10:46 PM |
| Character Embedding | geoblow | Flash Actionscript Programming | 0 | 09-18-2007 01:11 AM |
| NULL character within a string | vigneshgets | C# Programming | 1 | 08-01-2007 05:07 AM |
| Getting substring of the string variable in silk test | senthilkannan | Testing Tools | 0 | 07-30-2007 03:37 AM |