<?php
$array = [
["id" => 0, "input_Data" => "Up to 15 Groups / Month"],
["id" => 1, "input_Data" => "Up to 60 CSV File Importing / Month"],
["id" => 2, "input_Data" => "Up to 15 SMTP Config"],
["id" => 3, "input_Data" => "Up to 20 Email Template Can Make"],
["id" => 4, "input_Data" => "Up to 150 Ai Writer Call / Month"],
["id" => 5, "input_Data" => "Markitach SMTP Limit 1000 Emails"]
];
$find = 3;
$replace = "Up to the boss";
$index = array_find_key($array, fn($row) => $row['id'] === $find);
if ($index !== null) {
$array[$index]['input_Data'] = $replace;
}
var_export($array);
preferences:
25.04 ms | 404 KiB | 5 Q