What do you want to save?
Add Code snippet
New code examples
-
PHP 2021-10-15 03:13:06
laravel collection flatMap
$collection = collect([ ['name' => 'Sally'], ['school' => 'Arkansas'], ['age' => 28] ]); $flattened = $collection->flatMap(function ($values) { return array_map('strtoupper', $values); }); $flattened->all(); // ['name' =&... Add solution -
Other 2021-10-09 18:57:08
PHP-Google Map Api
/** * @function getDistance() * Calculates the distance between two address * * @params * $addressFrom - Starting point * $addressTo -&nbs... Add solution -
PHP 2021-09-27 11:08:02
error class helper not found laravel
Step 1: Create your Helpers (or other custom class) file and give it a matching namespace. Write your class and method: <?php // Code within app\Helpers\Helper.php namespace App\Helpers; class Helper { public static function shout(string $string... Add solution -
PHP 2021-09-25 01:29:02
php string mayusculas
<?php $str = "Mary Had A Little Lamb and She LOVED It So"; $str = strtoupper($str); echo $str; // muestra: MARY HAD A LITTLE LAMB A... Add solution -
Other 2021-09-20 02:27:04
print data that will be inserted in the database
$key = strtoupper(c_security::random_string(22)); $c_con->query("INSERT INTO keys(key, days, used) VALUES ('$key',".c_security::anti_sql_string($_POST["daysammount"])."', '0')"); echo $key; i think like that Add solution -