전문 번역가, 번역 회사, 웹 페이지 및 자유롭게 사용할 수 있는 번역 저장소 등을 활용합니다.
$great = 'fantastic'; echo "this is {$great}"; / / won 't work, outputs:
voici quelques exemples:
마지막 업데이트: 2011-10-24
사용 빈도: 1
품질:
경고: 보이지 않는 HTML 형식이 포함되어 있습니다
this is fantastic echo "this square is {$square - width}00 centimeters broad ."; echo "this works: {$arr[4][3]}"; / / this is wrong for the same reason / / as $foo[bar] is wrong outside a string. echo "this is wrong: {$arr[foo][3]}"; echo "you should do it this way: {$arr['foo'][3]}"; echo "you can even write {$obj - values[3] - name}"; echo "this is the value of the var named $name: {${$name}}";
?php $super = 'fantastique'; echo "c'est {$super}"; / / ne fonctionne pas, / / affiche "c'est {fantastique} "echo "c'est {$super}"; / / fonctionne, / / affiche "c'est fantastique" echo "ce carré a {$square - width}00 centimètres de large ."; echo "ceci fonctionne: {$tableau[4][3]}"; echo "ceci échoue: {$tableau[foo][3]}"; / / pour la même raison que $tableau[bar] ne fonctionne pas hors d'une chaîne echo "essayez plutôt comme ceci: {$tableau['foo'][3]}"; echo "vous pouvez même écrire {$objet - valeurs[3] - nom}"; echo "voici la valeur de la variable nommée $name: {${$name}}"; / / cela fonctionne, mais c'est vivement déconseillé. / / et pour finir, on peut combiner avec des fonctions $inv = 'bordeaux'; echo "je reprendrai bien un verre de cet excellent {${strrev('niv')}}, hips";?
마지막 업데이트: 2011-10-24
사용 빈도: 1
품질:
경고: 보이지 않는 HTML 형식이 포함되어 있습니다