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

Header is not working in IE
Hi ! header function is not working in IE but it works in FF, Safari, Chrome. any help please. :

Problem with umlauts and UTF-8
Hello every1,

I'm creating my own little CMS at the moment and got some problems with the cha

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

constructor ?
i have written this program and made 3 constructors in the class and i want to call them in the main

How can I Compare two xml documents?
Hi all,

I am doing a POC for my project and I am using XE database 10g version.

Allowing ' and "
Hello everyone,

I am creating a form where users submit information to go into a database. I

Problem with PHP/mySQL login code
Hello,

There is an error in my login script and I can't figure out what it is...
I believe

ImageCreate()
When I create an image and add text to it I want my text to be replaced with a PNG image, because th

Form validation with functions
Hi there

I am trying to make a very simple form validation function. I currently have the fol

Concatenate two strings ???
I have string one $string1 and another $string2.

How to concatenate (add) both of them $str

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