perl到php的脚本转换 [英] perl to php conversion of scripts

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

问题描述

如果$res ="FAIL : somethig is not visible" ,那么在perl中我们这样写

If $res ="FAIL : somethig is not visible" then in perl we write like this

print "FAIL" if ($res =~ /FAIL/gi); 





How to write the above line in php?

推荐答案

res ="FAIL:somethig不可见" 然后在perl中,我们这样写
res ="FAIL : somethig is not visible" then in perl we write like this
print "FAIL" if (


res =〜/FAIL/gi)打印失败";
res =~ /FAIL/gi);



如何在php中写上一行?



How to write the above line in php?


这篇关于perl到php的脚本转换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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