Search
 
SCRIPT & CODE EXAMPLE
 

PHP

install php7.4 in linux server

For install all important php 7.4 extensions
apt install php7.4-common php7.4-mysql php7.4-xml php7.4-xmlrpc php7.4-curl php7.4-gd php7.4-imagick php7.4-cli php7.4-dev php7.4-imap php7.4-mbstring php7.4-opcache php7.4-soap php7.4-zip php7.4-intl -y
Comment

install php7.4 linux

sudo apt install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt update
sudo apt install php7.4-common php7.4-mysql php7.4-xml php7.4-xmlrpc php7.4-curl php7.4-gd php7.4-imagick php7.4-cli php7.4-dev php7.4-imap php7.4-mbstring php7.4-opcache php7.4-soap php7.4-zip php7.4-intl -y

// Last part is stolen from Lokesh003Coding's answer <3
// This snippet should work on the currently most recent Linux distro
Comment

install php 7.4

sudo apt install php7.4-common php7.4-cli php7.4-bcmath php7.4-bz2 php7.4-curl php7.4-gd php7.4-intl php7.4-json php7.4-mbstring php7.4-readline php7.4-xml php7.4-zip php7.4-fpm
Comment

install php7

for simple you can install XAMPP
https://www.apachefriends.org/download.html
Comment

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

download php 7.4

download XAMPP
https://www.apachefriends.org/download.html
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 :: call stored procedure in laravel 
Php :: Comment faire en sorte que le numéro de téléphone ne soit pas un champ obligatoire dans WooCommerce 
Php :: static functions php 
Php :: Header requirements for new plugin in wordpress 
Php :: $s = [1,2,3] for loop use in php 
Php :: how to fix Undefined variable: product (View: C:xampphtdocsecommerce esourcesviewslivewireshop-component.blade.php) 
Php :: how to cut middle part of text php 
Php :: codeigniter 4 multiple validate error 
Php :: xampp php 
Php :: exists:categories,id except a value laravel 
Php :: php blob to string 
Php :: whats is typecasting in php 
Php :: add attribute to model laravel 
Php :: singular from table laravel 
Php :: laravel livewire public property 
Php :: laravel How can I escase string in whereRaw 
Php :: upsert request php-salesforce-rest-api 
Php :: hou to fill value in input box using php 
Php :: laravel eloquent where value less then 5 and greter then 0 
Php :: laravel error reporting code for view 
Php :: import csv in laravel 8 
Php :: codeigniter without index.php not working 
Php :: merge two entity symfony 
Php :: merge cell collumn phpOffice 
Php :: can we acces session variable in two files 
Php :: file upload yii2 rest api 
Php :: filter data in wordpress 
Php :: cmd download file from url 
Php :: multi file delete in php 
Php :: vscode php debugger change value 
ADD CONTENT
Topic
Content
Source link
Name
9+8 =