|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today! |
|
#1
|
|||
|
|||
|
PHP String Tutorial
Lots of the questions in this forum are related to string manipulation in some form or another. This is largely due to the large number of string functions available that not everyone knows about or how to use.
To counter this problem I was giving some thought to writing a string tutorial but before I even started I came across this - http://codewalkers.com/tutorials/45/1.html Its a fantastic tutorial with loads of details about string functionality in php. Whether you're a complete novice who needs a good starter or an experienced coder who wants to brush up on the topic I'd highly recommend reading it. Hope this is of use to someone, -KM- |
|
#2
|
|||
|
|||
|
It is a very good string tutorial!!
The only thing I have not seen documented is the way I manage sql strings when constructing queries... PHP Code:
How can PHP parse the $name and $pass variables when they're between single quotes?? I don't know, but it works as expected... maybe i missed some note or remark in the documentation... ;-)
__________________
The deal is not to know everything, but to know the email of the one who does. |
|
#3
|
|||
|
|||
|
PHP parses $name and $pass because the string itself is enclosed in double quotes. The single quotes are there for mysql's benefit and are output as is by php.
Hope this helps, -KM- |
![]() |
| Viewing: Dev Articles Community Forums > Programming > PHP Development > PHP String Tutorial |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|