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

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -