Home  >  Article  >  Backend Development  >  YII 遍历findAllByPk()中的一个值

YII 遍历findAllByPk()中的一个值

WBOY
WBOYOriginal
2016-06-23 13:54:181134browse

 $web=  Webset::model()->findAllByPk("1");
这个得到值是

请问如何取其中的web_title这个值啊。


回复讨论(解决方案)

$web[0]->web_title;
.......................
我搞定了,好没面子。。。。。。来人给分了

$web[0]->web_title

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn