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

Sorting an Array by Keys in PHP
How To Sort an Array by Keys in PHP? Sorting an array by keys can be done by using the ksort() function. It will re-order all pairs of keys and values based on the alphanumeric order of the keys. Here is a PHP script on how to use ksort(): &lt;?php $mixed = array(); $mixed["Zero"] = "PHP"; $mixe...
2017-01-21, 399👍, 0💬

'width' for HTML Table Widths
How To Control Table Widths? Usually, browsers will calculate the table width based on the content widths of table cells. If you want to control the width of a table, you need to use the "width" attribute, which allows you to set the table width in pixels or percentages of the parent element width. ...
2017-05-05, 392👍, 0💬

Issue with "while ($c=fgetc($f))" Loop in PHP
What's Wrong with "while ($c=fgetc($f)) {}" in PHP? If you are using "while ($c=fgetc($f)) {}" to loop through each character in a file, the loop may end in the middle of the file when there is a "0" character, because PHP treats "0" as Boolean false. To properly loop to the end of the file, you sho...
2016-11-27, 392👍, 0💬

Counting the Number of Values in an Array in PHP
How To Get the Total Number of Values in an Array in PHP? You can get the total number of values in an array by using the count() function. Here is a PHP example script: &lt;?php $array = array("PHP", "Perl", "Java"); print_r("Size 1: ".count($array)."\n"); $array = array(); print_r("Size 2: ".c...
2017-01-29, 391👍, 0💬

HTML 'del' and 'ins' Tags/Elements
What Are HTML "del" and "ins" Tags/Elements? "del" and "ins" elements are inline elements that you can use to specify text to be treated as deleted text and inserted text respectively. Here are basic rules about "del" and "ins" elements: "del" and "ins" elements are inline elements. "del" and "ins" ...
2017-04-28, 389👍, 0💬

HTML 'code' Tag/Element
What Is an HTML "code" Tag/Element? An "code" element is an inline element that you can use to specify text to be treated as computer code. Here are basic rules about "code" elements: "code" elements are inline elements. "code" elements can not be used at block level. Contents of "code" elements wil...
2017-04-28, 388👍, 0💬

HTML Tables and Table Cells
Where to find tutorials of introduction to HTML Tables and Table Cells? Here is a list of tutorials to answer many frequently asked questions compiled by FYIcenter.com team in introduction to HTML Tables and Table Cells. Clear answers are provided with tutorial exercises on table elements like: tabl...
2017-05-20, 386👍, 0💬

HTML Un-ordered List 'ul' Tag/Element
What Is a "ul" Tag/Element? A "ul" element is block level element that can be used to define an un-ordered list, where items are displayed with leading bullets. Here are basic rules about "ul" elements: "ul" elements are block level elements. "ul" elements can not have text contents. An "ul" element...
2017-05-29, 385👍, 0💬

FYIcenter JSON Validator and Formatter
FYIcenter JSON Validator and Formatter is an online tool that checks for syntax errors of JSON text string and converts it to a pretty format.
2017-08-13, 383👍, 1💬

💬 2017-08-13 Neil: Not too bad!

Passing an Argument to a Function in PHP
How To Pass an Argument to a Function? in PHP? To pass an argument to a function, you need to: Add an argument definition in the function definition. Add a value as an argument when invoking the function. Here is a PHP script on how to use arguments in a function(): &lt;?php function f2c($f) { r...
2016-12-24, 381👍, 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, 379👍, 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, 379👍, 0💬

HTML Nested List Elements
Can List Elements Be Nested? Yes. You can nest list element within each other because: List items can have block elements as contents. List elements are block elements. List items can have list elements as contents resulting nested list elements. Below is a good tutorial example of using nested list...
2017-05-29, 378👍, 0💬

HTML Ordered List Item Markers
How To Use Different Markers on Ordered List Items? By default, browsers will use decimal numbers as the item markers for ordered lists. If you want to change them to something else, like alphabetical letters, you need to use CSS properties. Here is a tutorial sample showing you how to set item mark...
2017-05-29, 378👍, 0💬

What Is HTML?
What Is HTML? HTML (HyperText Markup Language) is the standard markup language for creating Web pages. Web browsers receive HTML documents from Websites and render them into Web pages. More precisely, HTML gives authors the means to: Publish Web pages with headings, text, tables, lists, photos, etc....
2017-02-20, 378👍, 0💬

Appending Data to the End of a File in PHP
How To Append New Data to the End of a File in PHP? If you have an existing file, and want to write more data to the end of the file, you can use the fopen($fileName, "a") function. It opens the specified file, moves the file pointer to the end of the file, and returns a file handle. The second argu...
2016-12-02, 377👍, 0💬

XHTML 'meta' Elements Not Closed
What Happens If an XHTML "meta" Element Is Not Closed? Meta tags, link tags and base tags must be closed in XHTML documents. If you forget to close them like the HTML format, you will get validation errors. Try the following tutorial sample XHTML document on http://validator.w3.org/ to see what type...
2017-06-28, 375👍, 0💬

Processing Web Forms in PHP
Where to find tutorials on how to process Web Forms in PHP? A collection of tutorials to answer many frequently asked questions on how to process Web Forms in PHP. Clear explanations and tutorial exercises are provided on generating and processing Web forms, getting values out of $_REQUEST, processi...
2016-11-17, 375👍, 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, 373👍, 0💬

Defining an Argument as a Reference in PHP
Can You Define an Argument as a Reference Type? in PHP? You can define an 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 argument as a reference type: &lt;?php function ref_s...
2016-12-24, 371👍, 0💬

Default File Name of a URL
What Happens If File Name is Missing in a URL? If the file name part is missing in a URL, the one of the following two rules will be used. 1. If a URL has no file name, but a path name is given, the browser will let the hosting computer to supply the default file name. On most hosting computers, the...
2017-07-07, 370👍, 0💬

Writing an Array to a File without File Handle in PHP
How To Write an Array to a File without a File Handle in PHP? If you have an array, 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 all values from the specified string, closes the file, and ...
2016-11-27, 370👍, 0💬

HTML 'table' Tag/Element
What Is a "table" Tag/Element? A "table" element is a block level element that you can use to present information in table of rows and columns. Here are basic rules about "table" elements: "table" elements are block elements. "table" elements can not have empty contents. "table" elements can not hav...
2017-05-20, 369👍, 0💬

HTML 'strong' Tag/Element
What Is an HTML "strong" Tag/Element? A "strong" element is an inline element that you can use to specify text with a strong emphasis. Here are basic rules about "strong" elements: "strong" elements are inline elements. "strong" elements can not be used at block level. Contents of "strong" elements ...
2017-04-28, 369👍, 0💬

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