Skip to content

Instantly share code, notes, and snippets.

@cyrilletuzi
Created January 29, 2017 09:04
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save cyrilletuzi/f833a7013a1f4410bad716a28f4e9d8d to your computer and use it in GitHub Desktop.
<?php
$userMan = (bool) true;
$userAge = (int) 81;
$userAverage = (float) 10.5;
$userName = (string) 'Henri Bergson';
$userName = 10; // OK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment