Php Development Examples Apache Variables Is user using the Miscrosoft Internet Explorer Using gethostbyaddr() to Get a Hostname The name and version of the client Http Host Http Referer Loading table data from a CSV file explode CSV file fgetcsvRead csv file Format Codes for Use with date() Formatting a Date with date() dateSave result of getdate() to an array dateCall system date function and get result String time String matches December 16th 2002, 09Today's Date Get date and time A Function to Format Debugging Messages Echo multiline string Echoing a String Use Echo command to output HTML string Echo variables Use Echo to output string Escape the inner quotation marks by placing a backslash before each one Use echo command to output HTML Disabling Obtrusive Messages with '@' A Deliberate Error Define your own exception class Catch database connection exception Set Implode char explode time Implode array elements Takes a string apart based on a delimiter Imploding an Array Extracting Parameters from Either a GET or POST Request getdate()getdate()getdate()getdate()getdate()getdate()getdate()getdate()getdate()getdate()getdate()Acquiring Date Information with getdate() Get value from HTTP_POST_VARS Locale get and set Display the current locale information and change the locale get_include_path list and explode listmax_execution_timeCreating a Time Stamp with mktime() Number format function prototype Number format for current Number with dot A script to test phpinfo() PHP_VERSIONPHP_OSGet Php environment information Format our strings with line breaks to make our PHP code lines short Demonstrating that the syntax of print is quite flexible Use Print command to output string A PHP Script Including HTML Dynamically Setting and Accessing Variables Type Specifiers printfUsing printf() to Format a List of Product Prices printfprintfprintfprintfprintfprintfprintfprintfprintfprintfprintfprintfprintfprintfprintfprintf %f,%10f,%-010f,%2.2f print_rprint_r for array print_r a class Send data without a form Get query string A Function to Build Query Strings Get Server address Remote host Remote port Type Specifiers for printf() and sprintf() sprintf %0.2f sprintfsprintfsprintfPorter scanner Ping server Execute shell command 'dir' Ping command Execute help command and check its output Using exec() to Produce a Directory Listing Calling the man Command Using popen() to Read the Output of the UNIX who Command Using popen() to Pass Data to the column Application Write to system log Define and use your own exception class

Php Code : Print_r For Array

print_r for array in php


<?php

$languages = array ("A" => "A1",
                    "B" => "B1",
                    "C" => "C1");

print_r($languages);

?>