<< < 1 2 3 4 5 6 7 8 9 > >>   Sort: Date

Order of Array Values in PHP
How the Values Are Ordered in an Array in PHP? PHP says that an array is an ordered map. But how the values are ordered in an array? The answer is simple. Values are stored in the same order as they are inserted like a queue. If you want to reorder them differently, you need to use a sort function. ...
2017-01-29, 369👍, 0💬

Hyper Link Indexes within the HTML Document
How To Build Hyper Link Indexes within the Same Document? If you want build some hyper link indexes within the same document, you need use "a" elements to define some bookmarks, then use "a" elements to define hyper links that pointing to those bookmarks. The tutorial example below shows you how to ...
2017-07-03, 368👍, 0💬

HTML 'base' Tag/Element
What Is the HTML "base" Tag/Element? The "base" element is an optional sub-element of the "head" element. The "base" element specifies a base URL for all the hyper links in XHTML document. It has one required attribute called "href" to allow you to specify the base URL. Here is an example: &lt;?...
2017-06-23, 367👍, 0💬

'cellspacing' - White Spaces between HTML Table Cells
How To Control White Spaces between Table Cells? White spaces between cells refer to the vertical space between a upper cell and a lower cell in a table column, and the horizontal space between a left cell and a right cell in a table row. If inner borders are turned on, white spaces between cells ap...
2017-05-13, 367👍, 0💬

Index of Array Values in PHP
How Values in Arrays Are Indexed in PHP? Values in an array are all indexed their corresponding keys. Because we can use either an integer or a string as a key in an array, we can divide arrays into 3 categories: Numerical Array - All keys are sequential integers. Associative Array - All keys are st...
2017-02-03, 367👍, 0💬

What Is a Session ID in PHP
What Is a Session ID in PHP? A session ID is an identification string of a session. Since there might be multiple visitors coming to your Web site at the same time, the PHP engine needs to maintain multiple sessions concurrently. Session IDs are created and maintained by the PHP engine to identify s...
2016-10-26, 366👍, 0💬

Relative Path Name of a URL
What Is a Relative Path Name? A relative path name is a path name that starts without the leading slash "/". If a relative path name is used in a URL, the relative path name will be replaced with the current document path name appended with the specified relative path name. If "." or ".." is used in...
2017-07-07, 365👍, 0💬

Missing Cells in HTML Table Row
What Happens If One Row Has Missing Columns? What happens if one row has missing columns? Most browsers will provide empty columns to the end of the row to make up the missing columns. For example, if your XHTML document has a table with the first row having 2 columns, and the second row having 3 co...
2017-05-05, 365👍, 0💬

HTML Tutorials
Where to find tutorials on HTML language? I want to know how to learn HTML. Here is a large collection of tutorials to answer many frequently asked questions compiled by FYIcenter.com team about HTML language: Introduction of HTML What Is HTML? HTML Versions and Variations HTML Document Example XHTM...
2017-02-20, 365👍, 0💬

Randomly Retrieving Array Values in PHP
How To Randomly Retrieve a Value from an Array in PHP? If you have a list of favorite greeting messages, and want to randomly select one of them to be used in an email, you can use the array_rand() function. Here is a PHP example script: &lt;?php $array = array("Hello!", "Hi!", "Allo!", "Hallo!"...
2017-01-11, 365👍, 0💬

Truncating an Array in PHP
How To Truncate an Array in PHP? If you want to remove a chunk of values from an array, you can use the array_splice($array, $offset, $length) function. $offset defines the starting position of the chunk to be removed. If $offset is positive, it is counted from the beginning of the array. If negativ...
2017-01-05, 365👍, 0💬

Hyper Link Points to a Music File
What Happens If a Hyper Link Points to a Music File? If you want to build a hyper link to allow visitors to access a music/sound file by clicking a hyper link, you can put the URL of the music/sound file directly in the "href" attribute of the hyper link. If a visitor clicks the link, the browser wi...
2017-07-03, 364👍, 0💬

Writing a String to a File without a File Handle in PHP
How To Write a String to a File without a File Handle in PHP? If you have a string, want to write it to a file, and you don't want to open the file with a file handle, you can use the file_put_contents(). It opens the specified file, writes the specified string, closes the file, and returns the numb...
2016-11-27, 359👍, 0💬

$_GET, $_POST and $_REQUEST in PHP
Where Is the Submitted Form Data Stored in PHP? When a user submit a form on your Web server, user entered data will be transferred to the PHP engine, which will make the submitted data available to your PHP script for processing in pre-defined arrays: $_GET - An associate array that store form data...
2016-11-15, 359👍, 0💬

HTML Un-ordered List Item Markers
How To Use Different Markers on Unordered List Items? By default, browsers will use solid dots as the item markers for unordered lists. If you want to change them to something else, like tiny squares, you need to use CSS properties. Here is a tutorial example showing you how to set item markers to b...
2017-05-20, 358👍, 0💬

Retrieving All Keys from an Array in PHP
How To Get All the Keys Out of an Array in PHP? Function array_keys() returns a new array that contains all the keys of a given array. Here is a PHP script on how to use array_keys(): &lt;?php $mixed = array(); $mixed["Zero"] = "PHP"; $mixed[1] = "Perl"; $mixed["Two"] = "Java"; $mixed["3"] = "C+...
2017-01-21, 358👍, 0💬

Defining an Array Argument as Reference in PHP
Can You Define an Array Argument as a Reference Type? in PHP? You can define an array argument as a reference type in the function definition. This will automatically convert the calling arguments into references. Here is a PHP script on how to define an array argument as a reference type: &lt;?...
2016-12-18, 358👍, 0💬

Hyper Link Points to an Image
What Happens If a Hyper Link Points to an Image? If you want to build a hyper link to allow visitors to see an image by clicking a hyper link, you can put the URL of the image directly in the "href" attribute of the hyper link. If a visitor clicks the link, the browser will fetch and display the ima...
2017-07-03, 357👍, 0💬

Working with Directoris and Files in PHP
Where to find tutorials on how to Work with Directories and Files in PHP? A collection of tutorials to answer many frequently asked questions on how to Work with Directories and Files in PHP. Topics included in this collection are: Creating a Directory in PHP Removing an Empty Directory in PHP Remov...
2016-11-24, 357👍, 0💬

Getting Minimum/Maximum Value of an Array in PHP
How To Get the Minimum or Maximum Value of an Array in PHP? If you want to get the minimum or maximum value of an array, you can use the min() or max() function. Here is a PHP script on how to use min() and max(): &lt;?php $array = array(5, 7, 6, 2, 1, 3, 4, 2); print("Minimum number: ".min($arr...
2016-12-28, 356👍, 0💬

Hyper Link Points to a PDF File
What Happens If a Hyper Link Points to a PDF File? If you want to build a hyper link to allow visitors to access a PDF file by clicking a hyper link, you can put the URL of the PDF file directly in the "href" attribute of the hyper link. If a visitor clicks the link, the browser will fetch the PDF f...
2017-07-03, 354👍, 0💬

URL Starts with Path or File name
What Happens If a URL Starts with Path or File name? If a URL starts with a path name, the browser will borrow the protocol name, the host name, and the port number from the URL of the current document to make up the missing parts. For example, if the following URL is used in this document you are v...
2017-07-07, 353👍, 0💬

Verifying If a Key Exists in an Array in PHP
How Do You Know If a Key Is Defined in an Array in PHP? There are two functions can be used to test if a key is defined in an array or not: array_key_exists($key, $array) - Returns true if the $key is defined in $array. isset($array[$key]) - Returns true if the $key is defined in $array. Here is a P...
2017-01-29, 353👍, 0💬

HTML Table Cell 'td' Tag/Element
What Is a "td" Tag/Element? A "td" element is a special element that can only be used as a sub-element of a "tr" element. A "td" element defines a column in a row. Here are basic rules about "td" elements: "td" elements are special elements only valid inside "tr" elements. "td" elements can have tex...
2017-05-20, 352👍, 0💬

<< < 1 2 3 4 5 6 7 8 9 > >>   Sort: Date