Website Development Prices

Website Development Prices

Sunday, May 3, 2015

Pravila za PHP promenljive (Rules for PHP variables)

Pravila za PHP promenljive:


  • promenljiva pocinje sa $ znakom, nakon cega sledi ime promenljive
  • naziv promenljive treba poceti sa slovom ili znak podvlakom
  • ime promenljive ne moze poceti s brojem
  • naziv promenljive moze sadrzati samo alfanumericke znakove i podvlake (AZ, 0-9 i _)
  • Imena promenljivih - razlikuju velika i mala slova ($godine i $GODINE su dve razliite promenljive)

Rules for PHP variables:

variable begins with the $ sign, followed by a variable name
variable name should begin with a letter or an underscore character
variable name can not begin with a number
variable name can contain only alphanumeric characters and underscores (AZ, 0-9)
Variable names - are case sensitive ($ year and $ YEAR are two different variables)

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.