$string = 'Hello World!';
if(stristr($string, 'earth') === FALSE) {
echo '"earth" not found in string';
}
// 出力は "earth" not found in string となります
参照元:http://www.php.net/manual/ja/function.st…
今回RSSを取り出すのに使っていた「MagpieRSS」を以下のように使っていたのですが、
include (‘rss_fetch.inc’);
require_once ‘code_table.ucs2jis’;
require_once ‘jcode.php’;
繰り返し処理を行おうとしたところ、Fatal error: Cannot redeclare phpでのエラーとういうエラーが出現するので、以下のように修正したら、とりあえず動くようになりました。
ちゃんとした解決策なのかどうかは不明ですが・・・( ; ゚Д゚)
require_once (‘rss_fetch.inc’);
require_once ‘code_table.ucs2jis’;
require_once ‘jcode.php’;
graffiti on the web
この投稿へのコメント
コメントはまだありません。