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

How to Handle more than one submit button in single form?
Hi
I have one PHP file which contains one Form. In this form there are two Submit type Buttons

Renaming array keys
The issue: renaming array keys inside a foreach loop.

I'm trying to build a pie chart image w

using file_get_contents??
okay how would i create a script using file_get_contents() in php have it grab search pages 1-20 and

Protecting forms
Alright, I want to protect some forms of mine from SQL Injections, because I had someone earlier spa

Logic question
im wondering what's the best method to do the above list:

it is for alliance @ MMORPG game

Remote Database Access
Hey guys!!

OK, i'm used to only working with databases from the CPANEL, accessing phpMyAdmin

search function
HI guys,

if anyone could point us in the right direction of how to do this, or provide some t

Error with login script
I am getting an error with my login script:

Error:
Code: Warning: Cannot modify header inf

How to show next and prev records
Hi all,

Sorry if this is simple, i'm very new to php, well, any programming language actually

Character increment
Hi,

I am facing a scenario like above,but in my case i want to show up like Col A,Col B etc..

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