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

Sorting an Array by Values in PHP
How To Sort an Array by Values in PHP? Sorting an array by values is doable by using the sort() function. It will re-order all pairs of keys and values based on the alphanumeric order of the values. Then it will replace all keys with integer keys sequentially starting with 0. So using sort() on arra...
2017-01-21, 434👍, 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, 433👍, 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, 433👍, 0💬

HTML Description 'meta' Tag/Element
What Is the Description "meta" Tag/Element? The description "meta" element is a special meta element that provides a short descript about the HTML document. The description "meta" element must include the "name" attribute as, name="description". Here is an example: &lt;meta name="description" co...
2017-06-28, 433👍, 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, 433👍, 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, 432👍, 0💬

WPF App with VC# and XAML in Visual Studio 2017
How to build a WPF application with VC# and XAML in Visual Studio 2017? If you want to build a WPF (Windows Presentation Foundation) application with VC# and XAML in Visual Studio 2017, you can follow this tutorial 1. Start Visual Studio 2017 with .NET development environment. 2. Click "File &gt...
2017-08-13, 431👍, 0💬

Structure of a URL
What Is the Structure of a URL? The structure of a URL is defined by the URL specification, see http://www.ietf.org/rfc/rfc239 6.txt.Generally, a URL consists of 7 parts: Protocol Name - Identifies the communication protocol through which this resource is made available, like "http://" or "ftp://". ...
2017-07-07, 431👍, 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, 431👍, 0💬

Looping through an Array in PHP
How to Loop through an Array in PHP? The best way to loop through an array is to use the "foreach" statement. There are two forms of "foreach" statements: foreach ($array as $value) {} - This gives you only one temporary variable to hold the current value in the array. foreach ($array as $key=&g...
2017-02-03, 429👍, 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, 428👍, 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, 428👍, 0💬

HTML Forms and Input Fields
Where to find tutorials of introduction to HTML Forms and Input Fields? Here is a list of tutorials to answer many frequently asked questions compiled by FYIcenter.com team in introduction to HTML Forms and Input Fields. Clear answers are provided with tutorial exercises on forms and input fields: f...
2017-04-22, 428👍, 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, 426👍, 0💬

Splitting a String into an Array in PHP
How To Split a String into an Array of Substring in PHP? There are two functions you can use to split a string into an Array of Substring: explode(substring, string) - Splitting a string based on a substring. Faster than split(). split(pattern, string) - Splitting a string based on a regular express...
2016-12-28, 426👍, 0💬

Supporting Multiple Submit Buttons in PHP
How To Support Multiple Submit Buttons in PHP? Sometimes, you may need to give visitors multiple submit buttons on a single form to allow them to submit the form for different purposes. For example, when you show your customer a purchase order in a Web form, you may give your customer 3 submit butto...
2016-11-08, 426👍, 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, 426👍, 0💬

Passing Arrays to Function in PHP
Can You Pass an Array into a Function? in PHP? You can pass an array into a function in the same as a normal variable. No special syntax needed. Here is a PHP script on how to pass an array to a function: &lt;?php function average($array) { $sum = array_sum($array); $count = count($array); retur...
2016-12-18, 425👍, 0💬

Defining an HTML Hyper Link
How To Define a Hyper Link? If you want to define a hyper link in your HTML document, you need to use an "a" element with the "href" attribute. Here are basic rules about defining a hyper link with "a" element: An "a" element with the "href" attribute defines a hyper link. The "href" attribute is us...
2017-07-15, 423👍, 0💬

Default Protocol and Port Number of a URL
What Happens If Protocol or Port Number Is Missing in a URL? From a syntax point of view, all URL parts are optional. If some parts are not included in a URL, the browser and the hosting computer will provide default values. Here are some rules about the protocol name, host name, and port number: 1....
2017-07-07, 423👍, 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, 423👍, 0💬

Incorrect HTML 'head' Element
What Is Wrong with This XHTML "head" Element? If you have trouble passing the XHTML 1.0 validation on your head element, check the following common mistakes: Missing the title element. Not closing the meta element as &lt;meta ... &gt;. You must close all elements in XHTML documents. Not clos...
2017-06-28, 422👍, 0💬

What Is a URL
What Is a URL? A URL (Uniform Resource Locator) is a reference name representing a location of a Web document or other resource that is available on the Internet. Here are some examples of URLs: "http://www.w3.org/" "http://dev.fyicenter.com/faq/ xhtml/""http://www.google.com/search? hl=en&amp;q=...
2017-07-15, 421👍, 0💬

HTML 'form' Element Attributes
What Are the Attributes of a "form" Element? There are 3 commonly used attributes for a "form" element: "action" - Required attribute. Used to specify the URL of the form processing program. "method" - Optional attribute. Used to specify the form submission method: "get" or "post". method="get" is t...
2017-04-19, 418👍, 0💬

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