Jump to content

[SOLVED] Little problem


LiamProductions

Recommended Posts

Hey.

 

I made a script to randomize a slogan to echo out to the browser. But... instead of echoing the slogan line it echos the random number i was wondering whats wrong heres the script:

 

		<?php

	$slog1 = "Liam's website";
	$slog2 = "Liam's production website";
        $slog3 = "Quick loading website";	
	$slog4 = "Liam Can help you today";

	$n = rand(1,4);

	echo "<p>$slog$n</p>";

	?>

Link to comment
https://forums.phpfreaks.com/topic/63314-solved-little-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.