What do you want to save?
Add Code snippet
New code examples in category PHP
-
Awgiedawgie 2022-03-24 19:10:56
Class 'App\Http\Controllers\Session' not found
use Session; Add solution -
Phoenix Logan 2022-03-24 16:15:45
php echo shortcut
J'ai <?=$foo?> foo. Add solution -
Phoenix Logan 2022-03-24 15:40:11
php string functions
#String Functions substr() #Returns a portion of a string =========== <?php #substr() Returns a portion of a string $output = substr('Hello', 1, 3); $output1 = substr('Hello', -2);//starts from the back of the string echo $output; ... Add solution -
Phoenix Logan 2022-03-24 01:20:09
how to run foreach for the entire array except for one line in php
There are multiple ways of approaching this problem. The first solution is to use a flag boolean to indicate the first element and proceed in your foreach $firstElement = true; foreach($array as $key => $val) { if($firstElement) { $firstEl... Add solution -
Krish 2022-03-24 01:10:14
vivo.sx api clone file php
<?php //this will clone the vivo file to your account //original Link: https://vivo.sx/a1b2c4d5e5 //file id: a1b2c4d5e6 //you can clone up to 25 file-id's by adding ',' between the id's //Like: $file_id = "a1b2c4d5e6,a4b4c4d4e4,c1c2c4c5c5"; $... Add solution