Professional Documents
Culture Documents
What Is The Difference Between Echo and Print With Example
What Is The Difference Between Echo and Print With Example
What Is The Difference Between Echo and Print With Example
echo is similar to print where both are used to output data to the screen. Some of main differences are: Echo can be used in expressions as it has no return value while print has a return value of 1.
...
Echo vs Print.
echo print
A function is simply a “chunk” of code that you can use over and over again, rather than writing it out multiple times. Functions enable programmers to break down or decompose a problem into smaller chunks, each of which
performs a particular task.
You can use Expression Web to create web pages and sites that let you transfer files between your computer and your hosting account. Expression Web can design and develop web pages using HTML5, CSS 3, ASP.NET,
PHP, JavaScript, XML+XSLT and XHTML.
What is the difference between unary binary and ternary operators in PHP?
Unary Operator: Unary Operators take only one value. Binary Operator: Binary Operators take two values. Ternary Operator: Ternary Operator take three values
The comparison operator called as the Identical operator is the triple equal sign “===”. This operator allows for a much stricter comparison between the given variables or values. This operator returns true if both variable contains
same information and same data types otherwise return false.
Which language can be used to create open read/write delete and close files on the server?
Explanation: PHP can create, open, read, write, delete, and close files on the server.
AJAX = Asynchronous JavaScript and XML. AJAX is a technique for creating fast and dynamic web pages. AJAX allows web pages to be updated asynchronously by exchanging small amounts of data with the server behind the
scenes. This means that it is possible to update parts of a web page, without reloading the whole page.
1 <?php
2 If (unlink('/home/tutsplus/files/tmp.txt')) {
3 // file was successfully deleted
4 } else {
5 // there was a problem deleting the file
6 }
7 ?>
The first argument of the unlink function is a filename which you want to delete. The unlink function returns either TRUE or FALSE, depending on whether the delete operation was successful.
Inline
The inline CSS styles are added to the HTML tag using the style attribute.
The inline CSS is not recommended because we need to add style individually for each HTML tag. It will be hard to maintain the style.
Internal
The internal CSS means inside the head tag. We can include the <style> tag to define the style for the webpage.
The limitation of the internal CSS is that we cannot use the defined style on another HTML page. We need to include the same <style> section on every HTML page.
External CSS
In external CSS, we define the styles in a specific file(file extension should be .css) and link that to our web pages using the link tag.
This is a recommended way of including styles on a webpage because we can define the common CSS styles in specific files and include that file in all web pages.
Web 3.0 (Web3) is the third generation of the evolution of web technologies. The web, also known as the World Wide Web, is the foundational layer for how the internet is used, providing website and application
services.
advantages of session in php
PHP benefits of storing session data in database
Limit the number of logins. For instance if your application should allow only 10 logins at a time , then the session table can be checked to find the number of users already logged in. ...
Logout a user.
JavaScript is an independent language JQuery is a JavaScript library. It would not have been invented had JavaScript was not there. jQuery is still dependent on
and can exist on its own. JavaScript as it has to be converted to JavaScript for the browser in-built JavaScript engine to interpret and run it