需要文档帮助 [英] documentation help needed

查看:77
本文介绍了需要文档帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用并测试了以下内容:


$ x = myFunction($ someValue)? " true":false;


当myFunction()返回一个空数组时,结果为false,当

时返回非-empty数组导致true。这就是我想要的b $ b和期望,但是我找不到任何关于它的文档。自然而然地要小心(拼写出偏执狂)我不想依赖于此,直到我确定这是
。任何人都可以指向我支持

我正在看的文件吗?

解决方案

x = myFunction(

someValue中)? " true":false;


当myFunction()返回一个空数组时,结果为false,当

时返回非-empty数组导致true。这就是我想要的b $ b和期望,但是我找不到任何关于它的文档。自然而然地要小心(拼写出偏执狂)我不想依赖于此,直到我确定这是
。任何人都可以指出我支持

我正在看的文件吗?


William Gill schreef:


我使用并测试了以下内容:


I have used and tested the following:

$x = myFunction($someValue)? "true":"false";

When myFunction() returns an empty array, it results in false, and when
it returns a non-empty array it results in true. This is what I want
and expect, but I can''t find any documentation on it. Being naturally
cautious (spelled paranoid) I don''t want to rely on this until I''m
certain. Can anyone point me to the documentation that supports what
I''m seeing?

解决方案

x = myFunction(


someValue)? "true":"false";

When myFunction() returns an empty array, it results in false, and when
it returns a non-empty array it results in true. This is what I want
and expect, but I can''t find any documentation on it. Being naturally
cautious (spelled paranoid) I don''t want to rely on this until I''m
certain. Can anyone point me to the documentation that supports what
I''m seeing?


William Gill schreef:

I have used and tested the following:


这篇关于需要文档帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆