dsiplay array on php
<?php
$cars = array("Volvo", "BMW", "Toyota");
echo "I like " . $cars[0] . ", " . $cars[1] . " and " . $cars[2] . ".";
?>$array = array(
1 => 'apple',
2 => 'banana',
)
// Method 1
echo "<pre>";
print_r($array);
echo "</pre>";
// Method 2
echo "<pre>";
var_dump($array);
echo "</pre>";
// Method 3 (cakephp)
pr ($array);print_r($array);
Also in PHP:
- 5 sec delay timer in php
- custom front page to whmcs
- Str::random(40) not working in laravel
- create admin password in magento 2
- Allowed memory size of 134217728 by php
- check chartercount in php
- Auth log out laravel
- delete cache in laravel command
- find strign in string in php
- Remove all attributes from HTML tags in PHP
- config file php
- datetime manual date format
- check if a string contains php
- Show all laravel valet folders
- find duplicate in array php
- checking if a string contains a certain word
- echo php dropdown from db and save it in a db
- eloquent where in
- Array and string offset access syntax with curly braces is deprecated
- add tag tpo protfolio?
- Illuminate\Database\QueryException : SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes
- PDO encode result recordset to utf8
- aes php
- auto generate 6 string