top();

Gestart doorSmiegles3 reacties78 weergaven

4 berichten · pagina 1 van 1

Smiegles

Lid · Topicstarter

Berichten
4.912
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
hoe zorg ik er voor dat als ik bijv

top(); zeg dat er dan

<b>dit is de bovenkant</b>


komt?
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
function top() {
echo"dit is de bovenkant";
}
Zoiets geloof ik.
0
Berichten
6.144
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
config.php

[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #007700]function[/COLOR] top[COLOR= #007700]() {[/COLOR]
   [URL="http://www.php.net/return"]return[/URL] [COLOR= #DD0000]<b>Dit is de bovenkant</b>[/COLOR][COLOR= #007700];
}[/COLOR]


index.php

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]config.php[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] top[COLOR= #007700]();[/COLOR]
0
Berichten
3.314
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Gebruik liever die van JPonsen, een functie hoort iets te returnen, niet te echoèn.
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren