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

MYSQL gen help
This is my Mysql gen. can anyone tell me why this echos

MID(networkset.networkid, 3, 3) AS &q

Xacute search within SQL results
I have a query that is pulling data, and I want to return a specific value from the results of that

Changing files over
Just thought I'd start with the new forums looking really nice .

Ok basically I've made this

Track downloads' status
Hello,

I need to make somehow, some system, to track whether downloads are completed or faile

Problem with shopcart code
Hello, I am having a bit of trouble being able to add a product to my shopcart. My mysql database i

Sessions Value Not Saved
Hi,

Im making a login form and im using this code:
Code: if($login=="true"){

How do i use vars in an array
Hiya peeps!

How do I use a var in an array. You will see $id but it isnt working.


adding 0 to numbers
Hey guys i need to create a 00001 number in a loop. Is there a better way of forcing a 5 digit numbe

Do While statement
hi guys,

This may sound trivial but im new to php and as part of an assignmenti have to const

Warning: session_start() [function.session-start]: Cann.....
hi, can someone help me with this? I keep getting this error....

Warning: session_start() [fu

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