开发者

Transform output php

开发者 https://www.devze.com 2023-03-30 18:45 出处:网络
I have this, which is calling an integer value 开发者_开发技巧say: 2500. echo \"number_format({$row2[\'count(cID))\";

I have this, which is calling an integer value 开发者_开发技巧say: 2500.

echo "number_format({$row2['count(cID))";

This gives me an undesired output.

How do I fix this? How am i implementing the function wrong here? (I mean obviously I am)


If I guessed right, you want something like this:

echo number_format($row2['count(cID)']);

I suppose you are getting a column from the database and calling it 'count(cID)', but it's really hard to know what you need. Try providing more details.


Didn't you mean

echo number_format($row2[count($cId)]); 

?

0

精彩评论

暂无评论...
验证码 换一张
取 消