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

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

Missing XHTML 'title' Element
What Happens If the XHTML "title" Element is Missing? XHTML 1.0 requires you write the title element inside the head element. If you forget to include the title element, the XHTML validator will return an error to you. Here is how you can test this yourself. Go the W3 XHTML validator Web site: http:...
2017-06-28, 467👍, 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, 467👍, 0💬

HTML 'script' Tag/Element as Inline Element
What Is an HTML "script" Tag/Element? A "script" element is both an inline element and a block element that you can use to specify a script code to be executed by browsers. Here are basic rules about "script" elements: "script" elements are inline elements. "script" elements are also block elements....
2017-07-21, 466👍, 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, 466👍, 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, 464👍, 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, 464👍, 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, 463👍, 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, 462👍, 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, 462👍, 0💬

Splitting a String in PHP
How To Split a String into Pieces? There are two functions you can use to split a string into pieces: explode(substring, string) - Splitting a string based on a substring. Faster than split(). split(pattern, string) - Splitting a string based on a regular expression pattern. Better than explode() in...
2016-10-13, 462👍, 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, 461👍, 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, 461👍, 0💬

Understanding PHP Arrays and Their Basic Operations
Where to find tutorials in Understanding PHP Arrays and Their Basic Operations? A collection of tutorials to answer many frequently asked questions on basic understanding of PHP arrays. Clear answers are provided with tutorial exercises on declaring and creating arrays, assigning and retrieving arra...
2016-10-15, 460👍, 0💬

JSON-stringify-Object.html - JSON.stringify() on Objects
How JSON.stringify() behaves on JavaScript objects? When processing an object, JSON.stringify() behave depending on the type of objects based on the following rules: Boolean, Number, and String objects are converted to the corresponding primitive JSON values during stringification. Date objects are ...
2017-09-08, 459👍, 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, 458👍, 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, 458👍, 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, 458👍, 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, 458👍, 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, 456👍, 0💬

Attributes of an HTML 'img' Element
What Are the Attributes of an "img" Element? There are 4 commonly used attributes for an "img" element: "src" - Required attribute. Used to specify the URL of the image file. "alt" - Required attribute. Used to specify the name of the image. "width" - Optional attribute. Used to specify the width of...
2017-03-27, 454👍, 0💬

Protecting Special Characters in Query String in PHP
How To Protect Special Characters in Query String in PHP? If you want to include special characters like spaces in the query string, you need to protect them by applying the urlencode() translation function. The script below shows how to use urlencode(): &lt;?php print("&lt;html&gt;"); p...
2016-11-05, 454👍, 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, 454👍, 0💬

'rowspan' - Merging Cells HTML Table Columns
How To Merge Cells in a Column? If you want to merge multiple cells vertically in a row, you need to use the "rowspan" attribute of in a "td" element. "rowspan" allows you to specify how many cells you want to merge into this cell vertically. Below is a tutorial example of merging cells vertically: ...
2017-04-22, 453👍, 0💬

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