how to pass echo value to a variable by using php as i want to extract id and give its value to $prod.enter code here
$prodi=' <?php echo $cartr['id']; ?> ';
it gives me the error( Parse error: syntax error, unexpected 'id' (T_STRING) in C:\xampp\htdocs\cart.php )