tag:blogger.com,1999:blog-727499088252185747.post9042903795995000222..comments2019-05-12T21:07:32.249-07:00Comments on PHP MySql: PHP Strings Common PHP String Functions Substring ExamplesAnonymoushttp://www.blogger.com/profile/08808176886063562208noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-727499088252185747.post-65036678704576030692012-03-08T02:30:24.020-08:002012-03-08T02:30:24.020-08:00echo substr("abcdef", 0, -1); // will o...echo substr("abcdef", 0, -1); // will omit 1 char from the end and returns "abcde"<br />echo substr("abcdef", 2, -1); // returns "cde"<br />echo substr("abcdef", 4, -4); // returns ""<br />echo substr("abcdef", -3, -1); // returns "de"Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-727499088252185747.post-52890744529620073652012-01-04T05:05:58.664-08:002012-01-04T05:05:58.664-08:00Very Useful...THANK YOU...Very Useful...THANK YOU...Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-727499088252185747.post-40042455856687025612011-09-12T02:25:41.195-07:002011-09-12T02:25:41.195-07:00Useful information... Some of the points were real...Useful information... Some of the points were really new to me.Krrishhttp://itech.hubpages.com/hub/php-string-functionsnoreply@blogger.comtag:blogger.com,1999:blog-727499088252185747.post-45861195812097304822010-04-06T04:01:36.593-07:002010-04-06T04:01:36.593-07:00Good post. It helped me a lot. Thank you!Good post. It helped me a lot. Thank you!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-727499088252185747.post-65266175293149297652007-12-28T09:14:00.000-08:002007-12-28T09:14:00.000-08:00Also an important and useful string functions are ...Also an important and useful string functions are ucfirst and ucwords. The ucfirst function converts the first character of a given string to upper case. for example.<BR/><B>echo ucfirst("string functions");</B><BR/>will display <I>String functions</I>.<BR/><BR/>And ucwords will convert the first character of each word in a given string to uppercase. for example<BR/><B>echo ucwords("PHP string function");</B><BR/>will display <I>PHP String Function</I>.Anonymousnoreply@blogger.com