<?php
$const = [
'01' => [
'title' => 'タイトル',
'content' => '内容',
'etc' => 'その他'
],
'' => [
'title' => '',
'content' => '',
'etc' => ''
],
'NN' => [
'title' => '',
'content' => '',
'etc' => ''
]
];
//個別設定
$style='text-align: center;';
//出力
for($i=1;$i<99;$i++){
echo '<hr>';
if(isset($const[sprintf('%02d', $i)]['title'])){
echo '<div style=\''.$style.'\'>' . $const[sprintf('%02d', $i)]['title'] . '</div>';
}else{break;}
}
?>