Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

Search In

How to find elements from the group array in PHP

Hello Reader's! if you have set of arrays and you want to get all of them seperatly then the code below will help you. Let's say if you have [ [a], [b], [c], [a, b], [a, c], [b, c], [a, b, c] ] and you want this [a,b,c] The code will go lik

How to make combinations by elements of array using PHP

Hello Reader's If you want to get all elements in the combinations then you can use PHP code to generate it. Lets see the example as below:- function pc_permute($items, $perms = array()) { if (empty($items)) { echo join(' ', $perms) . "

BIN (N) string function mysql

String-valued functions return NULL, if the the result's length would be greater than the value of the max_allowed_packet system variable. The first position of a string (for those functions which operate on string), is numbered 1. Noninteger argum

CHAR_LENGTH(str) & CHARACTER_LENGTH(str) MySQL string function

CHAR_LENGTH(str) The string str length measured in characters is returned by CHAR_LENGTH. It also counts a single character for a multibyte character. This means, for a string containing five 2-byte characters, LENGTH() returns 10, whereas CHAR_LENG

To Run Stored Procedure everyday

For doing that we need to create procedure first and also define the repeating interval to call it again We will create procedure named getnotification from the particular database that gets fired after 3:30 hours on a daily basis. When we gets

How to show current timestamp by single click on page using Javascript

Hello Reader's if you want to show the current timestamp on the web page by just a single click, Then by using JS you can do it. Lets see the example below:- <!DOCTYPE html> <html> <body> <h1>My First JavaScript</h1>

array_fill_keys() in PHP

Hello Readers , The array_fill_keys() function fills an array with values, specifying keys. For Example we have an array array("a","b","c","d"); and we want to put "blue" in all values of a key. See the below example. <!DOCTYPE html> <htm

How to get last key in an array in PHP ?

Hi Reader's, Welcome to FindNerd, today we are going to discuss how to get last key in an array in PHP ? we need in some cases the last key or last element of an array in PHP. So We are using array_slice() function for getting only the last ele

Count the frequency of values in an array

Hello friends, If you want to count all the values in an array means you want that how much time a value is exist in an array then you can use a predefined PHP function which is "array_count_values()". array_count_values() returns an array using the

RTRIM(str) mysql function

RTRIM(str) RTRIM() mysql function returns the string str with trailing space characters removed. In mysql if you want to remove a white space from the right side of a string then you can use this RTRIM mysql function. RTRIM mysql function remove th

1 152 949
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: