Bu sembol PHP
3 Cevap php

Bu sembol PHP ne demek <?=?

Örnek kullanım:

<h2>Manage Role: > (<?= $myACL->getRoleNameFromID($_GET['roleID']); ?>)</h2> 

3 Cevap

Bu işlevsel <?php echo $myACL->getRoleNameFromID($_GET['roleID']); ?> ile aynıdır

Mark'ın cevap eklemek için: short_tags seçenek geçerli olması için <?= sözdizimi için etkinleştirilmiş olması gerekir. Bu seçeneğin kapalı olan bir sunucuya taşırken bu büyük bir taşınabilirlik sorun sunar.

See the PHP Manual for more info on short tags

Bu baskı PHP Kısa Etiket eşdeğerdir.

PHP INI Gönderen:

Using short tags is discouraged when developing code meant for redistribution ; since short tags may not be supported on the target server.

Bkz: "Are PHP Short Tags Acceptable to Use?" StackOverflow.