Skip to content

Tag: php

shell linux don’t execute commande

I have this command and it works fine on shell. I want to run it with php but it does not work what i missed : edited : $arg=”arg1″; $arg2= “arg2”; echo shell_exec(“sshpass -p “.escapeshellarg($…

Parse diverse array of numbers for value and number

I am using PHP 7.3.5 and I have the following set of array values: $valueArr = [‘-4.2%’, ‘51.0’, ’90K’, ‘0.5%’, ‘0.74|2.6’, ‘-1.2B’, ‘779B’, ‘215K’, ‘92.2%’, ‘42.8B’, ‘1.49T’, &#…