Htaccess    html   Php    javascript   Asp   css    maths  Past Questions  Practice Tests Online

var export function syntax tag tutorial 2013 Donate at flattr Flattr this

Alert! Connect with 10,000 Chating Online. Join Now

Php var export () function

Write your php code

<?php ?>

Php Result

Your code below

(PHP 4 >= 4.2.0, PHP 5)

var_export -- Outputs or returns a parsable string representation of a variable


mixed var_export ( mixed expression [, bool return] )

This function returns structured information about the variable that is passed to this function. It is similar to var_dump() with one exception: the returned representation is valid PHP code.

You can also return the variable representation by using TRUE as second parameter to this function.

= array (1, 2, array ("a", "b", "c"));

The above example will output:

array (
  0 => 1,
  1 => 2,
  2 => 
  array (
    0 => 'a',
    1 => 'b',
    2 => 'c',

= 3.1;
$v = var_export($b, true);


The above example will output:


See also var_dump() and print_r().

Php var export Function syntax tag

var export php code on this is provided for your study purpose, it will guide you to know how create and design a website using php. use it to practice and train your self online

Php var export syntax tutorial

php tutorial guide and code design are for easy learning and programming. The code practice section provided at the top is for practising of this syntax. Use the code section up to practice your php programming online. Learning php is very easy, all you need is to use the examples on this site and practice them to perfect your skills.

Function index







Date & Time

Directory function




Form data handling

Mathematics operators


Php Mysql

Network Functions


php tutorial guides,functions, classes, code examples and tags for creating simple dynamic site to mysql database driven sites
Htaccess    html   Php    javascript   Asp   css    maths  Past Questions  Practice Tests Online