php functions

Card Set Information

Author:
aczietlow
ID:
213651
Filename:
php functions
Updated:
2013-04-15 11:07:48
Tags:
php
Folders:

Description:
methods and functions available within PHP
Show Answers:

Home > Flashcards > Print Preview

The flashcards below were created by user aczietlow on FreezingBlue Flashcards. What would you like to do?


  1. typecasting
    • $foo = (array) $foo;
    • $foo = (b) $foo; // from PHP 5.2.1
    • $foo = (binary) $foo; // from PHP 5.2.1
    • $foo = (bool) $foo;
    • $foo = (boolean) $foo;
    • $foo = (double) $foo;
    • $foo = (float) $foo;
    • $foo = (int) $foo;
    • $foo = (integer) $foo;
    • $foo = (object) $foo;
    • $foo = (real) $foo;
    • $foo = (string) $foo;
  2. strlen ?
    int strlen ( string $string )

    $string the string being measured

    Returns the length of the given string.
  3. is_array
    bool is_array ( mixed $var )

    var The variable being evaluated

    Returns TRUE if var is an array, FALSE otherwise

What would you like to do?

Home > Flashcards > Print Preview