if (empty((array) $obj)) {
return 'error';
}
PHP 检测 空 Object
发表评论
if (empty((array) $obj)) {
return 'error';
}
if (abs($dem)=== 0.00){
//true
}
参考链接:http://php.net/manual/en/language.types.float.php
admin/write-post.php:58: content($post); ?>
admin/write-post.php:97: option($post); ?>
admin/write-post.php:140: advanceOption($post); ?>
admin/write-post.php:171:Typecho_Plugin::factory('admin/write-post.php')->trigger($plugged)->richEditor($post);
admin/write-post.php:178:Typecho_Plugin::factory('admin/write-post.php')->bottom($post);
admin/theme-editor.php:60:Typecho_Plugin::factory('admin/theme-editor.php')->bottom($files);
admin/editor-js.php:224: markdownEditor($content); ?>
admin/menu.php:7: navBar(); ?>
admin/header.php:15:$header = Typecho_Plugin::factory('admin/header.php')->header($header);
admin/footer.php:6:Typecho_Plugin::factory('admin/footer.php')->end();
admin/profile.php:58:Typecho_Plugin::factory('admin/profile.php')->bottom();
admin/common.php:18:Typecho_Plugin::factory('admin/common.php')->begin();
admin/write-page.php:53: content($page); ?>
admin/write-page.php:86: option($page); ?>
admin/write-page.php:112: advanceOption($page); ?>
admin/write-page.php:142:Typecho_Plugin::factory('admin/write-page.php')->trigger($plugged)->richEditor($page);
admin/write-page.php:149:Typecho_Plugin::factory('admin/write-page.php')->bottom($page);
admin/write-js.php:2:write(); ?>
index.php:20:Typecho_Plugin::factory('index.php')->begin();
index.php:26:Typecho_Plugin::factory('index.php')->end();
var/Widget/Upload.php:90: $result = Typecho_Plugin::factory('Widget_Upload')->trigger($hasUploaded)->uploadHandle($file);
var/Widget/Upload.php:162: $result = Typecho_Plugin::factory('Widget_Upload')->trigger($hasModified)->modifyHandle($content, $file);
var/Widget/Upload.php:227: $result = Typecho_Plugin::factory('Widget_Upload')->trigger($hasDeleted)->deleteHandle($content);
var/Widget/Upload.php:245: $result = Typecho_Plugin::factory('Widget_Upload')->trigger($hasPlugged)->attachmentHandle($content);
var/Widget/Upload.php:264: $result = Typecho_Plugin::factory('Widget_Upload')->trigger($hasPlugged)->attachmentDataHandle($content);
我在使用 Inoreader 和 Reeder 3 来进行消息的订阅和获取,在这个过程中,我需要收集到来自微信公众号的消息。
这时,就需要借助到「即刻」这款 App 了,下载「即刻」,然后搜索公众号。这样就可以拿到 Topic ID,交给 RSShub ,生成公众号的订阅连接。
这样,就实现了针对微信公众号的订阅。
「即刻」真是个好工具。
——
不过我的手机上不喜欢装太多无用的 App,所以在添加完订阅后,就卸载了 App。
拼多多火起来以后,我明白了一个道理
很多时候选择不是自愿,而是被逼的
购买拼多多的人未必不明白拼多多的东西很差、有假货,但是生活所迫,又能怪的了谁呢?只能不断的提升自己了。
如果工具型服务作出了预设的立场,从一开始就从道德高地进行批判,那就不应该标榜自己是一个中立的第三方。