htmlspecialchars() expects parameter 1 to be string, array given (View: E:\xampp\htdocs\readymixl\resources\views\auth\login.blade.php) code example

Example 1: htmlspecialchars() expects parameter 1 to be string, array given (View: C:\wamp64\www\DMS\resources\views\roadschedule\all_schedule_on_calender.blade.php)

$seat_data[$i] = [ 
    'name' => $seat[$first]['name'], 
    'id' => $seat[$first]['id'], ];

Example 2: htmlspecialchars() expects parameter 1 to be string, array given (View: C:\wamp64\www\DMS\resources\views\roadschedule\all_schedule_on_calender.blade.php)

$name = empty($seat[$first]['name']) ? $seat[$first]['name'] : $seat_no;

Tags:

Php Example