PHP functions online

Instructions

  1. Insert the name of a function
  2. See how many arguments it takes from the docs page.
  3. Start adding arguments by clicking on the Add an argument button:
    • if it's a string or a number, select string and enter it without quotation marks
    • if it's a constant, select constant and enter the name of the constant without quotation mark
    • if it's an array, select array and just type the php code you use to build an array.
      For example:
      array("hello" => "world", array("dum", "de", "dum" => 0));
      The first 6 chars must be "array(" or the tool will output "Not an array".
  4. Click on submit. The script will show then the return value and the output of the function.
  5. Some advices:
    • If you're using preg_ functions, use $x instead of \\x (i.e. $1 instead of \\1)
    • Strings don't need to be surrounded by quotation marks
Winapizone.net | Back to utilities