Curly Bracket Delimeters.


Posted on 16th Feb 2014 07:03 pm by admin

I'd always believed that the starting and ending delimeters in preg_ functions had to be the same character, but recently discovered that you can use the curly brackets.

Example:
Code: [Select]if(preg_match('{[0-9]}', $input)) {
I was just wondering if there was any disadvantage/advantage of using this method?

No comments posted yet

Your Answer:

Login to answer
195 Like 29 Dislike
Previous forums Next forums
Other forums

PDO returns erroneous columns from within pdt
Hi All,

This is a truly weird behavior:
When using a simple pdo fetch, erroneous columns a

displaying email without attracting a ton of spam
Hello,

this is maybe the wrong place to ask.
How would you display an email address on a w

update sql when refresh - php
hi
I have made a table (attachement)

the users can update the sql database using + or x bu

preg_replace question
Hello!!

I hope someone can help me with preg_replace.

I load two tables from an extern

login page does not execute a else statement
I've created a login page using sessions.
When an incorrect user name or password is entered then

CHECK A STRING FOR ' " ' (DOUBLE QUOTES)
I am checking for delimiter (.!?) and if there is a " after a sentence then it should neglect a

mails going in spam??
The mails I sent to folks in my database using mail(function) are going in spam??

Any idea ho

upload only text files
hi guys i want to upload only text like like (pdf,note pad and ofiice files) so can any one please t

Select question
Hi,

First I would like to say that php is pretty new for me..
so please don't shoot me if

timezone change with date()
so i put all my times for posts in my made from scratch forum(not phpbb3 or sm)
in my mysql db u

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash