msalsas.com
  • Experience
  • About Me
  • Blog

operators

Operator = with arrays in PHP

Posted on 28 February, 20146 May, 2015 by msalsas

The operator = used in PHP has two different functions: 1. Add: $value = 3; $value += 5; //$value = 8 2. Setting default values in an array: $arr = array(‘foo’ => true); $arr += array(‘foo’ => false); //$arr = array(‘foo’ => true) As the key “foo” is already defined in the array, it does[…]

Posted in PHP Tagged operators Leave a comment

Posts navigation

Categories

  • Git
  • PHP
  • Symfony
  • Symfony2

Archives

  • August 2018
  • February 2014
  • September 2013
  • August 2013

Recent Comments

  • maria tost on Video-tutoriales
Palma de Mallorca, Spain
manolez@gmail.com

msalsas

Zerif Lite powered by WordPress