今天在利用empty函数是出现Fatal error: Can’t use function return value in write context错误提示,觉得很怪,这个函数我可是使用了N久了今天怎么回事,错误提示:Fatal error: Can’t use function return value in write context in empty.php on line 5,我代码是这样写的:
- $str=” “;
- if(emptyempty(trim($str))){
- echo “emptyempty”;
- }
然后出现了:Fatal error: Can’t use function return value in write context in empty.php on line 5,看不出原因就上了官网查看了一下手册。
语法:bool empty (mixed $var)
如果 var 是非空或非零的值,则 empty() 返回 FALSE。换句话说,”"、0、”0″、NULL、FALSE、array()、var $var; 以及没有任何属性的对象都将被认为是空的,如果 var 为空,则返回 TRUE。 除了当变量没有置值时不产生警告之外,empty() 是 (boolean) var 的反义词。
可见empty只能用来检查变量值,不能用来检查函数的返回值,正确用法应该是:
- $var =trim(” “);
- // 结果为 true,因为 $var 为空字符串
- if (emptyempty($var)) {
- echo ‘emptyempty’;
- }
empty(trim($str)这种用法是错误的。
波比源码 – 精品源码模版分享 | www.bobi11.com
1. 本站所有资源来源于用户上传和网络,如有侵权请邮件联系站长!
2. 分享目的仅供大家学习和交流,您必须在下载后24小时内删除!
3. 不得使用于非法商业用途,不得违反国家法律。否则后果自负!
4. 本站提供的源码、模板、插件等等其他资源,都不包含技术服务请大家谅解!
5. 如有链接无法下载、失效或广告,请联系管理员处理!
6. 本站资源售价只是赞助,收取费用仅维持本站的日常运营所需!
7. 本站源码并不保证全部能正常使用,仅供有技术基础的人学习研究,请谨慎下载
8. 如遇到加密压缩包,请使用WINRAR解压,如遇到无法解压的请联系管理员!
波比源码 » php empty()出错,Fatal error: Can’t use function return
波比源码 » php empty()出错,Fatal error: Can’t use function return
levaquin 250mg sale levaquin usa
buy spironolactone pills fluconazole 100mg over the counter buy diflucan 200mg sale
buy ampicillin 250mg generic acillin cost oral erythromycin 500mg
order sildenafil 100mg generic order methocarbamol 500mg pills cost methocarbamol
suhagra 50mg ca sildenafil 50mg brand cost estradiol
tadalis sale tadalafil 20mg drug diclofenac price
isotretinoin 20mg canada buy amoxicillin 500mg for sale buy zithromax online
order generic tadalafil buy 5mg cialis cheap viagra generic
anastrozole 1 mg pills order biaxin 250mg online cheap buy viagra pill
doxycycline pills order generic vardenafil 10mg order lasix generic
clonidine 0.1 mg sale purchase minocin online cheap tiotropium bromide 9mcg pills
terazosin 1mg for sale purchase leflunomide pill azulfidine oral
cialis generic order generic tadalafil 5mg buy viagra 50mg generic
naltrexone 50mg pill albenza 400mg cost aripiprazole online
dapsone 100mg uk buy aceon 8mg pills aceon 8mg pills
order luvox 50mg generic cymbalta ca glucotrol 10mg usa
purchase azithromycin sale order prednisolone 20mg pills gabapentin 100mg sale
order tadalafil 20mg pills purchase tadalafil pills sildenafil 20mg
order lasix 40mg sale buy doxycycline 200mg sale hydroxychloroquine cheap
oral priligy 90mg buy synthroid 75mcg sale buy generic synthroid 75mcg
order generic cialis 5mg viagra 100mg pills order generic sildenafil 100mg
order orlistat 120mg pill cost orlistat 60mg zovirax ca
tadalafil without a doctor’s prescription tadalafil order order clopidogrel sale
no deposit free spins casino play casino online spins real money
pfizer cialis ampicillin 500mg usa ciprofloxacin 500mg sale
purchase cephalexin pills buy erythromycin 250mg for sale order erythromycin
pfizer viagra 50mg tadalafil pill cialis 10mg without prescription
online casino usa play real poker online brand cialis
deltasone price buy isotretinoin 40mg online cheap amoxil 1000mg
oral zithromax 250mg buy neurontin 600mg generic gabapentin 100mg over the counter
order furosemide 100mg online cheap buy doxycycline 100mg pills purchase hydroxychloroquine generic
brand prednisone 40mg order prednisone 40mg pills buy generic vermox
order sildenafil 50mg pills budesonide online order budesonide drug
order generic retin cream retin cream price avana generic
pioglitazone online buy overnight delivery viagra viagra 50mg usa
singulair order online buy sildenafil buy viagra 50mg for sale
tadalafil 20mg usa tadalafil without prescription tadalafil 5mg brand
online casino usa online card games best play money poker sites
nifedipine 10mg pill purchase allegra online buy fexofenadine 180mg
gamble poker online online pharmacy usa essay buy online
order ramipril 5mg pill buy etoricoxib 120mg without prescription order arcoxia 120mg
buy olmesartan online cheap order divalproex 250mg online depakote 250mg usa
acetazolamide 250mg generic cost imdur order generic imuran
digoxin online micardis 20mg generic molnunat 200 mg ca
buy generic amoxil amoxil 1000mg oral ivermectin oral solution
indocin 75mg over the counter flomax brand cenforce pill
buy doxycycline 100mg without prescription chloroquine online buy medrol 4mg over counter
purchase pepcid pill order pepcid 20mg for sale order generic mirtazapine
buy generic esomeprazole 40mg order clarithromycin 500mg order lasix online
minocycline online buy minocin 50mg capsules buy hytrin 5mg online cheap
buy tadalafil 40mg for sale cheapest ed pills buy erectile dysfunction drugs over the counter
purchase clomiphene generic clomid cost order generic prednisolone 40mg
modafinil drug order provigil 200mg pills order promethazine 25mg pills
isotretinoin 20mg brand isotretinoin 10mg for sale ampicillin medication
ivermectin without a doctor prescription oral deltasone order deltasone without prescription
generic ed drugs fildena us purchase proscar generic
accutane price order amoxil 1000mg pill zithromax pills
prednisolone 40mg drug furosemide medication buy lasix 40mg online
purchase vibra-tabs purchase vibra-tabs buy generic acyclovir 400mg