<?php
$name = ‘Apple’;
$score = 32.246;
//$info = “[$name][$score]”;
//echo $info . PHP_EOL;
//$info = sprintf(“[%15s][%10.2f]”, $name, $score);
//echo $info . PHP_EOL;
//$info = sprintf(“[%-15s][%10.2f]”, $name, $score);
//echo $info . PHP_EOL;
printf(“[%-15s][%10.2f]” . PHP_EOL, $name, $score);