Jump to content

[SOLVED] Using The Gettype In If Conditions


phpSensei

Recommended Posts

You can also do something like this, if not dealing with POST vars

 

<?php

// show a function which only accepts ints

public function myFunction(int $i) {
    //code
}

public function myFunction2(array $b) {
    foreach ($b as $a) {
     //etc etc etc 
   }
}
?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.