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

Stats of viewers
Hello. I have a website in php and people can login. I want to make an admin control panel where u c

Is it possible to put an entire 500-page book in a database with PHP?
I am working on an intranet and I was wondering if its possible to code php with mysql to enter a fu

function to return url
Hi,

Can you guys help me giving a function that takes all the contents in a particular field

Table sorting
Hi,

I'm trying to modify the following in order to make the output table sorted alphabeticall

PHP Upload issue
Hi guys,

I have stumble across an interesting issue with my script and is doing my head in.

insert quotes
Hi,

I have an output like this:
Code: john,18,Cancer
How can I change this to
Code:

Log $_POST
How would i log submits on a form, by everyone? I want to then echo the number of submissions.

Change log of Cost centre change in Plant maintenance order
Hi,
How to view Change log of Cost centre in Plant maintenance order. Not visible thru 'Docume

Reading waves
Hi,

I am trying to find a way of finding the highs and lows on a graph line, the line points

Limiting uploaded file type
I am working on a simple upload script, and I need it to limit the allowed file type that is uploade

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