Prepare the string with appropriately placed = and &, then parse, then extract.
$string="Size : Size 13 - 950-975 <br />Easygrip_Locking_System : No <br />Veranda_pole : No <br />Safelock_tie_down : No <br />Storm_Pole : No <br />Tall_Annexe : Yes <br />Inner_tent : Yes <br />";
$string=str_replace([' : ', ' <br />'], ['=', '&'], $string);
parse_str($string, $out);
extract($out);
echo "Size = $Size\n";
echo "Easygrip_Locking_System = $Easygrip_Locking_System\n";
echo "Veranda_pole = $Veranda_pole\n";
echo "Safelock_tie_down = $Safelock_tie_down\n";
echo "Storm_Pole = $Storm_Pole\n";
echo "Tall_Annexe = $Tall_Annexe\n";
echo "Inner_tent = $Inner_tent\n";
Output:
Size = Size 13 - 950-975
Easygrip_Locking_System = No
Veranda_pole = No
Safelock_tie_down = No
Storm_Pole = No
Tall_Annexe = Yes
Inner_tent = Yes
Demo: https://3v4l.org/ppv3G
If you want to perform validation or sanitize or make any other preparations, I recommend doing so before calling extract.
Alternatively, if you want to have greater control of the key and value substrings via a regex pattern, you can use pre_match_all().
if (preg_match_all ('~([a-z_]+) : (.+?) <br />~i', $string, $out, PREG_PATTERN_ORDER)) {
extract(array_combine($out[1], $out[2]));
echo "Size = $Size\n";
echo "Easygrip_Locking_System = $Easygrip_Locking_System\n";
echo "Veranda_pole = $Veranda_pole\n";
echo "Safelock_tie_down = $Safelock_tie_down\n";
echo "Storm_Pole = $Storm_Pole\n";
echo "Tall_Annexe = $Tall_Annexe\n";
echo "Inner_tent = $Inner_tent\n";
}
Demo: https://3v4l.org/vjYiK
parse_str()?