首页 “printf”

php之printf()小析

好吧,把printf()梳理一遍 : $num = 5; $location = "tree"; $format = "There are %d monkeys in the %s"; printf($format,$num,$location); //output:There are 5 monkeys in the tree //%d 表示