トップに戻る
tags
PHPで文字列を数値型に変換するには intval() を使用します。
// クォーテーションで囲って文字列型の変数を生成 $str = "99"; // 文字列型を数値型に変換する $num = intval($str);
edit