PHP | var_export() Function Last Updated : 03 Jun, 2022 Comments Improve Suggest changes Like Article Like Report The var_export() is a built-in function in PHP which is used to return the structured value(information) of a variable that is passed to this function as a parameter. This function is similar to the var_dump() function.Syntax: var_export($var, $return) Parameters: This function accepts two parameters as shown in the above syntax and are described below: $var: This parameter represents the variable to be exported.$return: This is an optional parameter and is of boolean type. In case it is used and set to true then this function returns the variable representation instead of outputting it. The default value of this parameter is FALSE. Return Type: It returns the variable representation if $return parameter is used and set to true otherwise this function returns NULL.Below programs illustrate the var_export() function:Program 1: php <?php // PHP program to illustrate // the var_export() function $var = '11.89'; $res = var_export($var, true); echo $res; ?> Output: '11.89' Program 2: php <?php // PHP program to illustrate // the var_export() function $var = +11.99; $res = var_export($var); echo $res ; ?> Output: 11.99 Reference: http://php.net/manual/en/function.var-export.php Comment More infoAdvertise with us Next Article PHP | var_export() Function S Shivani2609 Follow Improve Article Tags : Misc Web Technologies PHP Practice Tags : Misc Similar Reads PHP | gmp_export() function The gmp_export() function is an inbuilt function in PHP which exports a GMP number(GNU Multiple Precision: For Large Numbers) to a binary string. Syntax:Â string gmp_export ( GMP $gmpnumber, int $word_size, int $options ) Parameters: The gmp_export() function accepts three parameters as shown above 1 min read PHP var_dump() Function The var_dump() function in PHP is used to display structured information about one or more variables. The structured information means type and value of the given variable. It outputs not just the value of the variable but also its data type and, in the case of arrays or objects, all of their struct 2 min read PHP | exit( ) Function The exit() function in PHP is an inbuilt function which is used to output a message and terminate the current script. The exit() function only terminates the execution of the script. The shutdown functions and object destructors will always be executed even if exit() function is called. The message 2 min read PHP extract() Function The extract() Function is an inbuilt function in PHP. The extract() function does array to variable conversion. That is it converts array keys into variable names and array values into variable value. In other words, we can say that the extract() function imports variables from an array to the symbo 3 min read PHP | ftp_raw() function The ftp_raw() function is an inbuilt function in PHP which is used to send a raw command to the Remote server i.e. FTP Server. Syntax:Â ftp_raw( $ftp_connection, $command ) Parameters: This function accepts two parameters as mentioned above and described below:Â Â $ftp_connection: It is required para 2 min read Like