Jump to content

Recommended Posts

They have multiple meanings.

 

This is true:

These are used when echo'ing an array within a string. Without those braces PHP will get confused. You can add these into code to help PHP out.

 

PHP.net includes a description of the difference between interpreting 'Mascot' as a string, a value, or a literal (diff analysis).

 

It also is used in RegExp to define a range of values:

$pattern = '/[0-9]{1,2}/'

Where that means that two numbers from 0 - 9 show up at least once, and no more than two times. {1,2} = {min,max}

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.