Sebastiaanh schreef:Is er een betere manier voor dit?
[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$page[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]title[/COLOR][COLOR= #007700]])){[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$page[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]title[/COLOR][COLOR= #007700]]; }[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Home[/COLOR][COLOR= #007700]; }[/COLOR] ?> Vind het namelijk niet echt mooi.. (het staat in de tag, vandaar dat het niet uitgelijnd is)<br /><br /><a href="http://davidwalsh.name/php-ternary-examples" target="_blank" rel="noopener noreferrer">http://davidwalsh.name/php-ternary-examples</a>
)

