摘要:全文转自:http://www.lfyzjck.com/2010-11-25/389.html最近要做的一个网站需要在首页显示世界各大股票交易场所的综合指数,于是搜集了点这方面的资料,今天把研究的结果放出来。提供财经方面讯息,做的比较好的应该是Google财经和Yahoo财经了,综合考虑还是Yahoo的接口比较好用API使用方法比较简单,举个例子:http://finance.yahoo.com/d/quotes.csv?s=^XAU&f=snd1l1c6返回数据:”^XAU”,”PHLX Gold/Silver “,”11/24/2010″,213.51,”+1.01″很典型的CSV
阅读全文
文章分类 - PHP-sourcecode
PHP的一些常用或者不常用代码。
摘要:从网上收罗的,基本上就以下这几种方式:第1种方法:function get_extension($file){ substr(strrchr($file, '.'), 1);}第2种方法:function get_extension($file){ return substr($file, strrpos($file, '.')+1);}第3种方法:function get_extension($file){ return end(explode('.', $file));}第4种方法:function get_extension($file){
阅读全文