我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

PHP短标签echo方法(不等于)

Very simple:

So... That is working perfectly

<?=($A>9)?":)":":(";?>

Now... How can I say the same exact thing without = AND without echo ?

iow... I want to use that shortcut technique inside php code in between other php lines.

so this is NOT the correct syntax but just to get the idea more clearly...

<?

$A=50;

($A>9)?":)":":(";

?>

Well, you could simply not use PHP. If you want that text to be there without PHP's syntax, you don't have to use it in the first place.

Just include

($A>9)?":)":":(";

directly in the source text.

近期文章

  • 我可以使用add_filter()来使用apply_filters()吗?
  • 如何限制Laravel's Eloquent的结果数据?
  • Paypal API响应包含未记录的字段
  • Wordpress元框 - 如何向页面添加元框?
  • 如何检查我是否制作了最佳的mysql数据库? [关闭]
  • jquery窗口位置不能在php echo里面工作?
  • php代码从for循环生成备用no
  • Mysqli_insert_id返回0或$ con未定义
  • 无法使用$ _POST将数据插入MySQL数据库
  • CakePHP cookie不安全,不是httponly
  • 每个组织的每个用户的Laravel授权
  • phpunit InvalidArgumentException的测试用例
  • 获得Lavavel 4.2环境的最佳实践
  • android和RESTful Web服务实现
  • PHP搜索不使用PostgresQL数据库
  • 长时间执行后,PHP exec不会获得stdout
  • 如何在laravel 5中创建全局缓存函数
  • 在document.getElementById中使用变量
  • 如何在drupal 7中更改按钮的标题?
  • 如何使用SQL和PHP将链接添加到我的表中

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华