| <?php | |
| $params = array( | |
| 'query' => 'something', | |
| 'page' => 1, | |
| 'items' => 10 | |
| ); | |
| $url = 'http://someapi.com/search'; | |
| if (count($params) > 0) { | |
| $url .= '?' . implode('&', array_map(function($item) { | |
| return $item[0] . '=' . $item[1]; | |
| }, array_map(null, array_keys($params), $params))); | |
| } | |
| echo $url; // http://someapi.com/search?query=something&page=1&items=10 | |
| ?> |
Here is an example of adding a footer page number in a word document( .docx, .doc ) using PHP in ProcessMaker tool. Sometimes we would like to add the footer connect via styles or tag attributes to enable the footer on pages. View: Below screen the output screen to display the custom footer with few lines of code Example: <table border="0" cellpadding="0" cellspacing="0" id="test" style="width: 100%;"> <tbody> <tr> <td> <!--footer starts--> <div id="f1" style="position: fixed; bottom: 5mm; left: 0mm; width: 100%; mso-element: footer;"> <table border="0" cellpadding="0" cellspacing="0" style="width: 100%;"> <tbody> <tr> <td class="footer"> ...
Comments
Post a Comment