<< < 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, 352👍, 0💬

Opening Standard Output as a File Handle in PHP
How To Open Standard Output as a File Handle in PHP? If you want to open the standard output as a file handle yourself, you can use the fopen("php://stdout") function. It creates a special file handle linking to the standard output, and returns the file handle. Once the standard output is opened to ...
2016-11-24, 352👍, 0💬

XHTML 'meta' Tag/Element
What Is an XHTML "meta" Tag/Element? A "meta" element is optional child element of the head element. A "meta" element provides one piece of extra information about the XHTML document. Here are some important rules about "meta" elements: Meta elements are optional. Meta elements can only be used as s...
2017-06-28, 351👍, 0💬

Opening a File for Writing in PHP
How To Open a File for Writing in PHP? If you want to open a new file and write date to the file, you can use the fopen($fileName, "w") function. It creates the specified file, and returns a file handle. The second argument "w" tells PHP to open the file for writing. Once the file is open, you can u...
2016-12-02, 351👍, 0💬

Defining a HTML Bookmark
How To Define a Bookmark? A bookmark is a named reference point in an HTML document. If a bookmark can be included in the URL that represents this document, the browser will automatically move the display window to the reference point as soon as the document is open. If you want to define a bookmark...
2017-07-15, 350👍, 0💬

HTML Robots 'meta' Tag/Element
What Is the HTML Robots "meta" Tag/Element? The robots "meta" element is a special "meta" element that provides directives to robots who is visiting the HTML document. The robots "meta" element must include the "name" attribute as, name="robots". The "content" attribute must use predefined values of...
2017-06-23, 350👍, 0💬

'frame' - Controlling HTML Table Borders
How To Turn On Some Parts of Table Outer Borders? If you don't want to turn all 4 edges of outer borders in a table, you need to use the "frame" attribute, which offer the following options: &lt;table border="1" frame="border"&gt; - Turns on all 4 edges. &lt;table border="1" frame="box"&...
2017-05-13, 350👍, 0💬

Merging Two Arrays into a Single Array in PHP
How To Merge Values of Two Arrays into a Single Array in PHP? You can use the array_merge() function to merge two arrays into a single array. array_merge() appends all pairs of keys and values of the second array to the end of the first array. Here is a PHP script on how to use array_merge(): &l...
2017-01-11, 350👍, 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, 350👍, 0💬

HTML Keywords 'meta' Tag/Element
What Is the HTML Keywords "meta" Tag/Element? The keywords "meta" element is a special meta element that provides a list of keywords about the HTML document. The keywords "meta" element must include the "name" attribute as, name="keywords". Here is an example: &lt;meta name="keywords" content="X...
2017-06-23, 349👍, 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, 349👍, 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, 349👍, 0💬

Accessing Global Variables inside a Function in PHP
How To Access a Global Variable inside a Function? in PHP? By default, global variables are not accessible inside a function. However, you can make them accessible by declare them as "global" inside a function. Here is a PHP script on declaring "global" variables: &lt;?php ?&gt; $intRate = 5...
2016-12-08, 347👍, 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, 346👍, 0💬

Function Returns Data by Value in PHP
How Values Are Returned from Functions? in PHP? If a value is returned from a function, it is returned by value, not by reference. That means that a copy of the value is return. Here is a PHP script on how values are returned from a function: &lt;?php $favor = "vbulletin"; function getFavor() { ...
2016-12-08, 346👍, 0💬

Local Variables in a Function in PHP
What Is the Scope of a Variable Defined in a Function? in PHP? The scope of a local variable defined in a function is limited with that function. Once the function is ended, its local variables are also removed. So you can not access any local variable outside its defining function. Here is a PHP sc...
2016-12-08, 345👍, 0💬

Python Tutorials
Where to find tutorials on Python programming language? I want to learn Python. Here is a large collection of tutorials to answer many frequently asked questions compiled by FYIcenter.com team about Python programming language: Introduction of Python What Is Python Download Latest Version of Python ...
2017-09-08, 343👍, 0💬

Hyper Link Points to a ZIP File
What Happens If a Hyper Link Points to a ZIP File? If you want to build a hyper link to allow visitors to access a ZIP file by clicking a hyper link, you can put the URL of the ZIP 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, 343👍, 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, 343👍, 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, 341👍, 0💬

HTML Anchor 'a' Tag/Element
What Is an Anchor "a" Tag/Element? An "a" element is an inline element that you can use to specify a hyper link in your HTML document. An "a" element can also be used to define a bookmark in your HTML document. Here are basic rules about "a" elements: "a" elements are inline elements. "a" elements c...
2017-07-15, 340👍, 0💬

Invoking a User Function in PHP
How To Invoke a User Function? in PHP? You can invoke a function by entering the function name followed by a pair of parentheses. If needed, function arguments can be specified as a list of expressions enclosed in parentheses. Here is a PHP script example on how to invoke a user function: &lt;?p...
2016-12-28, 340👍, 0💬

HTML Lists and List Items
Where to find tutorials of introduction to HTML Lists and List Items? Here is a list of tutorials to answer many frequently asked questions compiled by FYIcenter.com team in introduction to HTML Lists and List Items. Clear answers are provided with tutorial examples on list elements for ordered list...
2017-06-16, 339👍, 0💬

Using isset($_REQUEST('name')) in PHP
How To Avoid the Undefined Index Error in PHP? If you don't want your PHP page to give out errors as shown in the previous exercise, you should consider checking all expected input fields in $_REQUEST with the isset() function as shown in the example script below: &lt;?php if (isset($_REQUEST['n...
2016-11-15, 339👍, 0💬

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