Posts Tagged with php7

Displaying 1-2 of 2 results.
Resolved: Composer Ubuntu installation and errors
posted by admin on January 18, 2017
I am trying to install composer by that way and get some errors.
Step 1: Ensure the Curl dependency is installed.

sudo apt-get -y install curl

Step 2: Download the Composer installer and pass it to php.

sudo curl -sS | php

My error in this step:

The program 'php' can be found in the following packages:
* php7.0-cli
* hhvm
Try: sudo apt install <selected package>
curl: (23) Failed writing body (0 != 16133)
Read more
Resolved: PHP remove same values from two arrays
posted by admin on April 5, 2016
I have two arrays

$array1 = array("a" => "green", "red", "blue", "red");


$array2 = array("b" => "green", "yellow", "red");

I want to compare values, and get new array with unique elements.

[1] => blue
Read more