Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?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