Search
 
SCRIPT & CODE EXAMPLE
 

PHP

php version 7.4

function test(...$args) { var_dump($args); }
test(1, 2, 3);
Comment

php version 7.4

$arr = [...$args];
Comment

php version 7.4

array(5) {
	[0]=>
	string(6) "banana"
	[1]=>
	string(6) "orange"
	[2]=>
	string(5) "apple"
	[3]=>
	string(4) "pear"
	[4]=>
	string(10) "watermelon"
}
Comment

php version 5.6

pub   2048R/33CFC8B3 2014-01-14 [expires: 2020-01-13]
      Key fingerprint = 6E4F 6AB3 21FD C07F 2C33  2E3A C2BF 0BC4 33CF C8B3
uid                  Ferenc Kovacs <tyrael@php.net>

pub   2048R/90D90EC1 2013-07-18 [expire : 2016-07-17]
      Key fingerprint = 0BD7 8B5F 9750 0D45 0838  F95D FE85 7D9A 90D9 0EC1
uid                  Julien Pauli <jpauli@php.net>
Comment

php version 7.4

Parse error: syntax error, unexpected '...' (T_ELLIPSIS), expecting ']' in /app/spread-operator.php on line 3
Comment

php version 7.4

$parts = ['apple', 'pear'];
$fruits = ['banana', 'orange', ...$parts, 'watermelon'];
var_dump($fruits);
Comment

PREVIOUS NEXT
Code Example
Php :: eval base64 decode php 
Php :: list bulan php 
Php :: register widget in wordpress 
Php :: net::ERR_CONNECTION_REFUSED php 
Php :: how to call a function in model from a controller 
Php :: Laravel Eloquent sum of multiplied columns 
Php :: how to export and import database in phpmyadmin 
Php :: get original data without cast laravel 
Php :: vagrant no pg_hba.conf entry for host 
Php :: envoyer mail php depuis localhost 
Php :: php loop add class to first element 
Php :: multiple checked delete in laravel8 
Php :: laravel csv import 
Php :: show data as per url slug change in laravel 
Php :: connexion sql php/html 
Php :: tina4 generate crud 
Php :: find common value from sub arrays 
Php :: This behaviour is (currently) not supported by Doctrine 2 
Php :: set php version in php.ini 
Php :: wc php order view order link 
Php :: fuelphp authentication 
Php :: Yii2 Dynamic Relational, Lazy loading 
Php :: Augmenter la dimension des fichiers WP 
Php :: woocommerce disable payment method if coupon appied and total is 0 
Php :: date selct option php 
Php :: teaching php in interactive mode 
Php :: php get numer of items 
Php :: Program to Multiply Two Numbers in php 
Php :: time debug php 
Php :: laravel multiple status for a attribute in laravel migration 
ADD CONTENT
Topic
Content
Source link
Name
5+3 =