Welcome to %s forums

<No. 1 Community for developers, by developers/>

Login Register

Search found 100 matches

by admin
Sat Dec 07, 2019 1:19 am
Forum: JavaScript, jQuery, ES6+
Topic: You don't know everything about Strings in JavaScript
Replies: 0
Views: 75

You don't know everything about Strings in JavaScript

Basic Info and String Concatenation Strings in JavaScript can be enclosed in Single quotes 'hello', Double quotes "Hello" and (from ES2015, ES6) in Template Literals (backticks) `hello`. var hello = "Hello"; var world = 'world'; var helloW = `Hello World`; // ES2015 / ES6 Strings can be created fro...
by admin
Sun Nov 03, 2019 5:24 pm
Forum: PHP
Topic: Accessing A Variable Dynamically By Name (Variable variables) using PHP
Replies: 0
Views: 33

Accessing A Variable Dynamically By Name (Variable variables) using PHP

Variables can be accessed via dynamic variable names. The name of a variable can be stored in another variable, allowing it to be accessed dynamically. Such variables are known as variable variables. To turn a variable into a variable variable, you put an extra $ put in front of your variable. $vari...
by admin
Sun Nov 03, 2019 5:18 pm
Forum: PHP
Topic: Do you know PHP has its own built in server? Know how to run it.
Replies: 0
Views: 29

Do you know PHP has its own built in server? Know how to run it.

PHP 5.4+ comes with a built-in development server. It can be used to run applications without having to install a production HTTP server such as nginx or Apache. The built-in server is only designed to be used for development and testing purposes. It can be started by using the -S flag: php -S <host...
by admin
Sun Nov 03, 2019 5:13 pm
Forum: PHP
Topic: How to print Non-HTML output from web server using php?
Replies: 0
Views: 29

How to print Non-HTML output from web server using php?

In some cases, when working with a web server, overriding the web server's default content type may be required. There may be cases where you need to send data as plain text, JSON, or XML, for example The header() function can send a raw HTTP header. You can add the Content-Type header to notify the...
by admin
Sun Nov 03, 2019 5:04 pm
Forum: PHP
Topic: Hello World Program in PHP - Detailed Explaination
Replies: 0
Views: 28

Hello World Program in PHP - Detailed Explaination

The most widely used language construct to print output in PHP is echo: echo "Hello, World!\n"; Alternatively, you can also use print: print "Hello, World!\n"; Both statements perform the same function, with minor differences: echo has a void return, whereas print returns an int with a value of 1 ec...
by admin
Thu Oct 24, 2019 10:04 pm
Forum: HTML CSS
Topic: How to use comments in HTML?
Replies: 0
Views: 140

How to use comments in HTML?

Comments Similar to other programming, markup, and markdown languages, comments in HTML provide other developers with development specific information without affecting the user interface. Unlike other languages however, HTML comments can be used to specify HTML elements for Internet Explorer only....
by admin
Wed Oct 23, 2019 11:22 pm
Forum: HTML CSS
Topic: HTML Tables Explained Well
Replies: 0
Views: 86

HTML Tables Explained Well

Tables The HTML <table> element allows web authors to display tabular data (such as text, images, links, other tables, etc.) in a two dimensional table with rows and columns of cells. Simple Table <table> <tr> <th>Heading 1/Column 1</th> <th>Heading 2/Column 2</th> </tr> <tr> <td>Row 1 Data Column ...
by admin
Wed Oct 23, 2019 11:02 pm
Forum: HTML CSS
Topic: What are Superscript and Subscript and how to use it in HTML?
Replies: 0
Views: 42

What are Superscript and Subscript and how to use it in HTML?

To offset text either upward or downward you can use the tags <sup> and <sub> .
To create superscript:

Code: Select all

<sup>superscript here</sup>
To create subscript:

Code: Select all

<sub>subscript here</sub>
by admin
Wed Oct 23, 2019 11:00 pm
Forum: HTML CSS
Topic: How to use Inserted, Deleted, or Stricken tags in HTML?
Replies: 0
Views: 32

How to use Inserted, Deleted, or Stricken tags in HTML?

To mark text as inserted, use the <ins> tag:

Code: Select all

<ins>New Text</ins>
To mark text as deleted, use the <del> tag:

Code: Select all

<del>Deleted Text</del>
To strike through text, use the <s> tag:

Code: Select all

<s>Struck-through text here</s>
by admin
Wed Oct 23, 2019 10:55 pm
Forum: HTML CSS
Topic: How to use Abbreviation in HTML?
Replies: 0
Views: 83

How to use Abbreviation in HTML?

Abbreviation To mark some expression as an abbreviation, use <abbr> tag: <p>I like to write <abbr title="Hypertext Markup Language">HTML</abbr>!</p> If present, the title attribute is used to present the full description of such abbreviation. Demo - https://developersdiscussion.com/ext/dmzx/imageup...