2012-04-11 3 views

답변

6

이 따옴표는 추가를 수행 할 수없는 그것을 따라서 문자열 표현을 제공

<?php $d=2; echo "the sum of the number is"."<sub>".($d+1)."</sub>"; ?> 

로 작성하려고합니다.

3
는 따옴표 밖에 표현을 이동

:

<?php 
    $d = 2; 
    echo "the sum of the number is <sub>" . ($d+1) . "</sub>"; 
?>