Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
こんにちは私は最初の数字と2番目の数字の間にドットを入れる必要があります私の結果は次のとおりです:
11私は彼をこのようにする必要があり1.1ますか?
11
1.1
if ( strlen($model->rate) == 2 ) { }
$model->rate = $model->rate[0] . '.' . $model->rate[1];
また、if条件は次のようになります(等号の数に注意してください)。
if ( strlen($model->rate) == 2 )