-1
假設我有一個字符串作爲如何將包含HTML標籤和php變量的字符串轉換爲php字符串變量?
Hi, <br><br>
Someone has shared a <?php echo $job_type ?> with you through <?php echo CHtml::link(Yii::params['Data_Port'], Yii::app()->getBaseUrl(true)); ?>.<br><br>
Title: <?php echo $job_title;?><br><br>
<?php echo CHtml::link("View"." ".ucfirst($job_type)." "."Details", $job_link); ?>
我怎樣才能把這個整個字符串成一個PHP變量,使所有的PHP變量轉換成它們各自的值?