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

Copying Array Values to a List of Variables in PHP
How To Copy Array Values to a List of Variables in PHP? If you want copy all values of an array to a list of variable, you can use the list() construct on the left side of an assignment operator. list() will only take values with integer keys starting from 0. Here is a PHP script on how to use list(...
2017-01-29, 686👍, 0💬

Creating an Array with a Sequence in PHP
How To Create an Array with a Sequence of Integers or Characters in PHP? The quickest way to create an array with a sequence of integers or characters is to use the range() function. It returns an array with values starting with the first integer or character, and ending with the second integer or c...
2017-01-05, 684👍, 0💬

Data Types of Array Keys in PHP
What Types of Data Can Be Used as Array Keys in PHP? Two types of data can be used as array keys: string and integer. When a string is used as a key and the string represent an integer, PHP will convert the string into a integer and use it as the key. Here is a PHP script on different types of keys:...
2017-02-03, 676👍, 0💬

Joining Keys and Values into an Array in PHP
How To Join a List of Keys with a List of Values into an Array in PHP? If you have a list keys and a list of values stored separately in two arrays, you can join them into a single array using the array_combine() function. It will make the values of the first array to be the keys of the resulting ar...
2017-01-11, 653👍, 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, 639👍, 0💬

Install .NET Framework in Visual Studio
How to install .NET Framework in Visual Studio Community 2017? I have the Visual Studio Installer installed. If you have the Visual Studio Installer ready, you can follow these steps to install .NET Framework in Visual Studio Community 2017. 1. Close Visual Studio, if you are running it. 2. Run "All...
2017-09-19, 637👍, 0💬

'context.Request.Body' Request Body
How to access Request body from "context.Request.Body" object in Azure API Policy? Request body is the HTTP request body, which follows an empty line after request headers. You can access Request body from "context.Request.Body" object in any policy statements. This "context.Request.Body" object is ...
2018-01-24, 635👍, 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, 632👍, 0💬

JSON.stringify() Function in JavaScript
Where to get the detailed description of the JSON.stringify() Function in JavaScript? Here is the detailed description of the JSON.stringify() Function in JavaScript. Description - The JSON.stringify() method converts a JavaScript value to a JSON string, optionally replacing values if a replacer fun...
2017-09-08, 631👍, 0💬

Finding a Given Value in an Array in PHP
How To Find a Specific Value in an Array in PHP? There are two functions can be used to test if a value is defined in an array or not: array_search($value, $array) - Returns the first key of the matching value in the array, if found. Otherwise, it returns false. in_array($value, $array) - Returns tr...
2017-01-21, 616👍, 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, 615👍, 0💬

Start Visual Studio Command Prompt
How to start Visual Studio Command Prompt? I have Visual Studio 2017 Community version with Visual C++ environment installed. If you have Visual Studio 2017 Community version with Visual C++ environment installed, you can follow this tutorial to start Visual Studio Command Prompt: 1. Run "All Progra...
2017-08-21, 609👍, 0💬

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, 608👍, 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, 601👍, 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, 600👍, 0💬

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

HTML 'table' Element Attributes
What Are the Attributes of a "table" Element? A "table" element may have the following commonly used attributes: "summary" - Specifies a text string as the summary of the table. "width" - Specifies the width of the table. "border" - Specifies the border width. "frame" - Specifies how the outer borde...
2017-05-13, 590👍, 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, 583👍, 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, 582👍, 0💬

Supporting Hidden Form Fields in PHP
How To Support Hidden Form Fields in PHP? Hidden fields are special fields in a form that are not shown on the Web page. But when the form is submitted, values specified in the hidden fields are also submitted to the Web server. A hidden field can be specified with the &lt;INPUT TYPE=HIDDEN ...&...
2016-11-08, 565👍, 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, 562👍, 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, 550👍, 0💬

Setting session.gc_maxlifetime Properly in PHP
How To Set session.gc_maxlifetime Properly in PHP? As you know that session.gc_maxlifetime is the session value timeout period. You should set this value based on the usage pattern of your visitors. Here are some suggestions: # Set it to 20 minutes for a normal Web site: session.gc_maxlifetime = 120...
2016-10-24, 544👍, 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, 541👍, 0💬

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