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

image upload, resize THEN submit form
Ok so I have a form that requires the user to upload an image, and then do something with that image

paginate search result
Hi, I have a paginations script to display data from my database but i would like to paginate someon

Not reloading page after php form submit
Hello helpful souls out there. You guys have come through for me in the recent past and I'm hoping s

how to make database item unique
Hey guys,

is it possible to do this:

I have the database item $title being pulled for

RadioButtonList item spacing
I have a RadioButtonList and I can't put any spacing between the items. They are arranged verticall

php or sql?
Sorry not sure if this is a sql problem or php the following code is supposed to delete data from th

Is it possible to view php source code??
Hi All

I was just wondering if it's possible to view a websites php source code?
I know

post to self
Trying to get my form to submit to itself. However I am also trying to use an image for my submit bu

Help with looping
I have a comma separated list of colors taken from a database ($ICo) and a directory of images named

Trigger tag in aspx is not coming
hi all ,iam new to ajax, iam using file upload inside the update pannel but right now i want to use

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