24 minutes (1440 seconds)… Read more
How do I remove the first element from an array? Please write a piece of code.
Use a function array_slice($array,1)
array_slice() returns the sequence of elements from the array array
as specified by the offset
and length
parameters
I want to invert my array, can I do this? If Yes then please write a piece of code.
$array=array_flip($array)
Exchanges all keys with their associated values in an array
array_flip() returns an array in flip order, i.e. keys from trans become values and values from trans become keys.
How to find Browsers information in PHP?
$browser = get_browser(null, true);
print_r($browser);
&
echo $_SERVER[‘HTTP_USER_AGENT’] . “\n\n”;… Read more
How to give permissions for files in php?
chmod($image, 755);… Read more
What’s the default port for MySQL Server?
3306… Read more
What is hook [WordPress] ?
Hooks are provided by WordPress to allow your plugin to ‘hook into’ the rest of WordPress; that is, to call functions in your plugin at specific times, and thereby set your plugin in motion.
There are two kinds of hooks:
1. Actions: Actions are the hooks that the WordPress core … Read more
What is DDL, DML and DCL?
If you look at the large variety of SQL commands, they can be divided into three large subgroups.
Data Definition Language deals with database schemas and descriptions of how the data should reside in the database, therefore language statements like CREATE TABLE or ALTER TABLE belong to DDL.
DML deals … Read more
What is the difference between inner, outer, left and right joins?
The JOIN keyword is used in an SQL statement to query data from two or more tables, based on a relationship between certain columns in these tables.
The difference is in the way tables are joined if there are no common records.
JOIN is same as INNER JOIN and means … Read more
What is the use of ob_start()?
This function will turn output buffering on. While output buffering is active no output is sent from the script (other than headers), instead the output is stored in an internal buffer. The contents of this internal buffer may be copied into a string variable using ob_get_contents(). To output what is … Read more