Bienvenue sur le blog de Philippe Kouadio

Tag Archives: php

PHP – Print spaces or repeat characters

Afficher un ou plusieurs espace entre deux paramètre lors de l’affichage php La fonction str_repeat (a,b) permet de répéter b fois a. a = imput, b = multiplier. B>=0. Espace en html: “ ”. Ainsi si on veut afficher 10 espaces, on écrira: echo str_repeat(“ ”,10); On peut utiliser cette fonction pour répéter plusieurs fois n’importe quoi, ... Read More »

Add php page to wordpress

Source: Adam Hopkinson You don’t need to interact with the API, or use a plugin. First, duplicate post.php or page.php in your theme folder (under /wp-content/themes/themename/). Rename the new file as templatename.php (where templatename is what you want to call your new template!). Enter the following <!–?php /* Template Name: templatename */ ?–> at the ... Read More »

Scroll To Top