ادخال مصفوفة الي قاعدة البيانات واسترجعها

PHOTO EMBED

Wed Mar 27 2024 22:19:09 GMT+0000 (Coordinated Universal Time)

Saved by @mebean #php #array

// Assuming you have a model for the table you want to insert into
$model = new YourModel;
$model->packages = json_encode(request('packages')); // Store the selected packages as a JSON array
$model->save();


===================
  $packages = json_decode($model->packages);
content_copyCOPY