user-documentation
user-documentation copied to clipboard
Need a better example to show defining functions with format strings
Please complete the information below:
Where is the problem?
Section "Functions: Format Strings"
What is the problem?
We provide an example to show defining functions with format string. But in the function takes_format_string
, there is no function body tells us how to handle $format and $args, it would be much better to provide an example in the function.
Please don't change anything below this point.
- Build ID: HHVM=HHVM-4.84.0:HSL=v4.41.0:2020-11-18T21:55:19+0000:1fa47f258c6b68f8ec01899aa82fd6ffa0957109
- Page requested: /hack/functions/format-strings
- Page requested at: Tue, 24 Nov 2020 04:35:08 +0000
- Controller: GuidePageController
@Wilfred Would you be able to help with a quick code example for takes_format_string
in https://docs.hhvm.com/hack/functions/format-strings?