「WordPressで学ぶPHP(1)変数・制御構造編」が発売されました。 「WordPressで学ぶPHP」シリーズの第1巻で、WordPressを通してPHPを学んでいく本です。 この本では、PHPの基本となる変数と制御構造について解説します。 Kindle本で、定価500円です。 mixiのMTのコミュニティで、以下のような質問を見かけました。 MT4.2のカスタムフィールド(MTsale)を使用。 入力された金額に1.05をかけて税込表示にしたい。 入力される金額は3桁ごとに,区切りで、出力も同じように3桁で,区切りにしたい。 入力例. 1,999 出力はphp等で動的に変換せず、静的な数字としてhtmlを出力したい。 この質問に答えてみます。 1.フィールドの値を1.05倍する 質問された方は、フィールドの値からコンマを除いて1.05倍する方法として、以下のタグをあげていました。