Hey what is the syntax error in this php code...scratching head at end of project please
<?php echo str_replace("\", "", $objVehicleData->getPrice());>
should be
<?php echo str_replace("\\", "", $objVehicleData->getPrice()); ?>
you need to escape \
, like:
<?php echo str_replace("\\", "", $objVehicleData->getPrice()); ?>
The \
character starts an escape sequence. The "
immediately following it is escaped so it doesn't end the string.
You need to escape the \
character:
replace("\\", "", $