Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <link rel="icon" href="favicon.gif" type="image/gif" sizes="16x16">
- // Set Favicon
- function getDomainFromEmail($email)
- {
- // Get the data after the @ sign
- return substr(strrchr($email, "@"), 1);
- }
- $path = "/testweb/home.php";
- //Show filename with file extension
- echo basename($path) ."<br/>";
- //Show filename without file extension
- echo basename($path,".php");
- ?>
- The output of the code above will be:
- home.php
- home
- $quote = DB::table('quotes')
- ->select('quote')
- ->orderBy('rand()')
- ->limit(1)
- ->pluck('quote');
- <h4><?php echo $quote; ?></h4>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement