×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Coder Conder
Added: Oct 1, 2017 3:23 PM
Views: 9
Tags: no tags
Formats a string in PHP
  1. $number = 9;
  2. $str = "Beijing";
  3. $txt = sprintf("There are %u million bicycles in %s.",$number,$str);
  4. echo $txt;
  5.