Skip to content

Instantly share code, notes, and snippets.

@geekcom
Last active April 21, 2017 15:29
Show Gist options
  • Save geekcom/8265773943cc517f50f267faa4032cb9 to your computer and use it in GitHub Desktop.
Save geekcom/8265773943cc517f50f267faa4032cb9 to your computer and use it in GitHub Desktop.
<?php
/*
* $a é igual a 9 agora e $b foi definido como 4.
*/
$a = ($b = 4) + 5;
/*
* atribuição da chave 'nome' ao valor 'PHP7.1',
* exemplo de array associativo
*/
$array = ['nome' => 'PHP7.1'];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment