WeberDev.com PHP and MySQL Code

LOG IN
BEGINNER GUIDESPHP CLASSESCODE SEARCHARTICLES SEARCHPHP FORUMSPHP MANUALPHP FUNCTIONS LISTWEB SITE TEMPLATES
Start typing to search for PHP and MySQL Code Snippets and Articles Search


Submit a code Example / Snippet Join us on FaceBook
Submit a code Example / Snippet Submit Your Code
Poker Tournaments Poker Tournaments
Poker Guide for Developers Poker Guide for Developers
Search Engine Optimization Monitor SEO Monitor
Web Site UpTime Monitor UpTime Monitor
Your Personal Examples List My Favorite Examples
Your Personal Articles List My Favorite Articles
Edit Account Info Update Your Profile
PHP Code Search
Web Development Forums
Learn MySQL Playing Trivia
PHPBB2 Templates
Web Development Resources
Web Development Content
PHPClasses
PHP Editor
PHP Jobs
Vision.To Design
Ajax Tutorials
PHP Programming Help
PHP/MySQL Programming
Webmaster Resources
Webmaster Forum
XML meta language
website builder
פרייסז - השוואת מחירים בסופר
ZeroLag.com
Texas Holdem Poker Evangelists

Go Back Add a Comment Send this example to a friend Add this Article to your personal favoritest for easy future access to your favorite Code Examples and Articles. Submit a code example Print this code example.
BACK ADD A COMMENT SEND TO A FRIEND ADD TO MY FAVORITES ADD CODE EXAMPLES PRINT
Title : The meaning of your name
Categories : PHP, Arrays, Misc Click here to Update Your Picture
Ben Yacoub Hatem
Date : Mar 29th 2005
Grade : 3 of 5 (graded 3 times)
Viewed : 4833
File : No file for this code example.
Images : No Images for this code example.
Search : More code by Ben Yacoub Hatem
Action : Grade This Code Example
Tools : My Examples List

Submit your own code examples  Submit your own code examples 
 

Well it's nothing really serious, but just if you want to have a PHP break for example :

The meaning of your name Hatem
# You are not judgmental
# You can be very quiet when you have something on your mind
# You have an attitude, a big one
# You are a very exciting person
# Success comes easily to you

<?php
/**
* themeaningof() Just return the meaning of your name :)
*
* @author Hatem <[email protected]>
* @param string $name
* @return
**/
function themeaningof($name = ""){

   
$names = array('A'=>'You can be very quiet when you have something on your mind',
           
'B'=>'You are always cautious when it comes to meeting new people',
           
'C'=>'You definitely have a partier side in you, don\'t be shy to show it',
           
'D'=>'You have trouble trusting people',
           
'E'=>'You are a very exciting person',
           
'F'=>'Everyone loves you',
           
'G'=>'You have excellent ways of viewing people',
           
'H'=>'You are not judgmental',
           
'I'=>'You are always smiling and making others smile',
           
'J'=>'Jealously',
           
'K'=>'You like to try new things',
           
'L'=>'Love is something you deeply believe in',
           
'M'=>'Success comes easily to you',
           
'N'=>'You like to work, but you always want a break',
           
'O'=>'You are very open-minded',
           
'P'=>'You are very friendly and understanding',
           
'Q'=>'You are a hypocrite',
           
'R'=>'You are a social butterfly',
           
'S'=>'You are very broad-minded',
           
'T'=>'You have an attitude, a big one',
           
'U'=>'You feel like you have to equal up to people\'s standards',
           
'V'=>'You have a very good physique and looks',
           
'W'=>'You like privacy',
           
'X'=>'You never let people tell you what to do',
           
'Y'=>'You cause a lot of trouble',
           
'Z'=>'You\'re always fighting with someone'
       
);

   
$uname = strtoupper($name);
   
$result = array();
    for(
$i = 0; $i < strlen($uname); $i++){
        if (
array_key_exists($uname[$i], $names)) {
           
$result[$uname[$i]] = "<li>".$names[$uname[$i]]."</li>\n";
        }
    }
// for

   
return "<b>The meaning of your name $name</b>".implode('',$result);
}
echo
themeaningof("Hatem");
?>



CSS style switcher
Categories : PHP, CSS, HTML and PHP, Arrays, Sessions
MIME records PHP Array
Categories : PHP, Misc
phpRecommend v1.2 - UPDATED - recommend this page to a friend script - VERY easy install - now with data logging to text file
Categories : Complete Programs, PHP, Link to Article, URLs, Misc
How to pass an array from one PHP Script to another via an HTML form
Categories : PHP, HTML and PHP, Arrays
Selecting a random line from a text file
Categories : PHP, Filesystem, Arrays, Beginner Guides
Dynamic Loading of XML array data into ComboBox and Display XML data using PHP + DOM + Javascript.
Categories : PHP, Java Script, DOM XML, XML, Arrays
A database abstraction layer for the PHP Oracle 8 module (available from PHP 3.0.5). It supports persistent connections, fetching rows into arrays, prepare/execute (variable binding) and has a new and improved error interface.
Categories : Databases, Oracle, PHP, Arrays, Variables
This gets the http response headers for a given url and returns them in an assoc array. i.e. to test if a url exists: $array = get_http_headers($url); if($array[result]=200) { }
Categories : HTTP, Arrays, PHP
Select with current month
Categories : PHP, HTML and PHP, Date Time, Arrays
PHP Random rss feeds - selects 49 random feeds from an unlimited list and displays them on your website. It's Ideal for those moments when you got 5 minutes and dont know which one of your feeds to read.
Categories : PHP, Rich Site Summary (RSS), Arrays
Array values from javascript to php
Categories : PHP, Java Script, Arrays
PHP Array to Javascript Object
Categories : PHP, Arrays, Java Script
Simple way of scaling any image to fit either given width or height.
Categories : PHP, Graphics, Arrays
create a grid out of <INPUT TYPE=TEXT> then saving to a database. Uses a 'multi-dimension array', but not really as the array is just one big array with the index of "[$i][$j]". Have a look at the code and you'll see what I mean.
Categories : PHP, MySQL, Arrays, Databases
This script allows people to add their favorite quotes to your website. This could easily be modified to be a guestbook script or comment page script.
Categories : PHP, Complete Programs, HTML and PHP, Misc
 Jose Santos wrote :1302
This example is very good and interesting.
Is good game to take with friends !!