没想到啊

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
  6 随笔 :: 379 文章 :: 97 评论 :: 24万 阅读
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

文章分类 -  PHP-sourcecode

PHP的一些常用或者不常用代码。
摘要:全文转自: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 阅读全文
posted @ 2011-10-25 14:26 没想到啊 阅读(6716) 评论(0) 推荐(0) 编辑

摘要:从网上收罗的,基本上就以下这几种方式:第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){ 阅读全文
posted @ 2011-10-25 12:00 没想到啊 阅读(454) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示