php - How implement 'include' into printf? -
I use this type of work in projects:
(" Block / myCompanyCommentsListBlock.php ");
I need something somethig like this:
$ str = sprintf ("% s Gt; ", Include (" block / myCompanyCommentsListBlock.php ")); How can this be done? :) Any link would be useful :)
Use of output buffering to prevent its content from being sent Browse Browser Then use to capture its output in a variable.
ob_start (); Include ("blocks / myCompanyCommentsListBlock.php"); $ Content = ob_get_clean (); $ Str = sprintf ("% s ", $ content);
Comments
Post a Comment