Yii Framework Forum: curly braces - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

curly braces Rate Topic: -----

#1 User is offline   StasuSS 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 60
  • Joined: 20-February 12
  • Location:Kaluga, Russia

Posted 28 February 2012 - 04:02 AM

$form->{$_POST['id']} = $_POST['value'];


why there are used curly braces? i have not seen it in my life(((

i found in php manual that curly braces allow to use variable names that are not allowed in general syntax..
but it seems to me that it is not the case

found what it is. it is Complex (curly) syntax))) nice feature in php!

This post has been edited by StasuSS: 28 February 2012 - 04:06 AM

Things are very seldom what they seem. In my experience, they’re usually a damn sight worse. (Inquisitor Titus Drake)
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users