0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

codecamp第3章‐6 課題(初級)

Last updated at Posted at 2023-12-05

「printf」という関数を使い、変数$intの値を5桁の数値として表示するよう、以下のプログラムへ追記してください。

<?php
 
// 表示する数字
$int = 315;
 
// 5桁の数字(00315)として表示
print sprintf('%05d', $int);
?>
0
1
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?