You are currently browsing the デビラボ weblog archives for the day 月曜日, 5月 18th, 2009.
月曜日, 5月 18th, 2009 Posted in PHP | No Comments »
文字列からHTMLタグなどを取り除く便利な関数があったのでメモ。 ○使い方 strip_tags("<div><p>文字列</p></div>", "<div>"); 1つ目のパラメータに文字列 2つ目のパラメータに対象外のタグを指定する Read more..