What does %S mean in PHP, HTML or XML?

前端 未结 5 852
無奈伤痛
無奈伤痛 2021-02-01 14:55

I\'m looking at Webmonkey\'s PHP and MySql Tutorial, Lesson 2. I think it\'s a php literal. What does %s mean? It\'s inside the print_f() function i

5条回答
  •  臣服心动
    2021-02-01 15:58

    In printf, %s is a placeholder for data that will be inserted into the string. The extra arguments to printf are the values to be inserted. They get associated with the placeholders positionally: the first placeholder gets the first value, the second the second value, and so on.

提交回复
热议问题