10 PHP code snippets for working with strings

2010-06-16 Thread amiable_indian

Some of the snippets might be good enough to be added to the
framework.

http://www.catswhocode.com/blog/10-php-code-snippets-for-working-with-strings

-amiable

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: 10 PHP code snippets for working with strings

2010-06-16 Thread euromark
some of them already are


On 16 Jun., 14:57, amiable_indian mithu.si...@gmail.com wrote:
 Some of the snippets might be good enough to be added to the
 framework.

 http://www.catswhocode.com/blog/10-php-code-snippets-for-working-with...

 -amiable

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: 10 PHP code snippets for working with strings

2010-06-16 Thread calvin
Eh, none of those snippets are particularly clever. They're all either
really obvious or just poorly written (the Twitter, contains(), and
the URL transform ones for example). With the way those snippets are
presented, I thought they'd either help you accomplish difficult tasks
or be elegantly written. Maybe if you're unfamiliar with regular
expressions then you might find the regexp snippets useful; otherwise,
meh...

I mean, does how to use fgetcsv() really warrant a snippet? Or how to
check if a string starts with/contains another string? Anyone can look
up those functions on php.net and figure it out for themselves within
15 seconds. There are much more complicated or less well documented
php functions/classes that would be more worthy of a snippet to
explain their usage--e.g. mcrypt, soap, xml-rpc, etc.

On Jun 16, 5:57 am, amiable_indian mithu.si...@gmail.com wrote:
 Some of the snippets might be good enough to be added to the
 framework.

 http://www.catswhocode.com/blog/10-php-code-snippets-for-working-with...

 -amiable

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en