PHP String sscanf() FunctionLast Updated : 17 Mar 2025 The sscanf() is predefined PHP function. It is used to return parses input from a string according to a format. If we will pass two parameters in the function, the data will be returned as an array. Related Function:
Syntax:
Example 1Output: int(7) Example 2Output: int(18) int(6) Example 3Output: string(10) "javatpoint" Example 4Output: Array
(
[0] => We
[1] => are
[2] => Learning
[3] => PHP
[4] => 7
)
Next TopicPHP String |
We request you to subscribe our newsletter for upcoming updates.

We deliver comprehensive tutorials, interview question-answers, MCQs, study materials on leading programming languages and web technologies like Data Science, MEAN/MERN full stack development, Python, Java, C++, C, HTML, React, Angular, PHP and much more to support your learning and career growth.
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India