Answers for "explode array in laravel"

PHP
1

explode function in laravel

$full_name = "John Doe";
$name = explode(' ',$full_name);
$first_name = $name[0];
$last_name = $name[1];
Posted by: Guest on September-22-2021
0

explode in laravel blade

@if ($data->facings != "")
  @foreach(explode(',', $data->facings) as $info) 
    <option>{{$info}}</option>
  @endforeach
@endif
//@sujay
Posted by: Guest on October-16-2020

Browse Popular Code Answers by Language