Two problems: $randstring is not in scope when you echo it. The characters are not getting concatenated together in the loop. Here&...
Javascript Upper case and lower case and reverse example
<script> function check(){ var nu=document.getElementById('txtNumber').value; var v=document.getElementsByTagName("p&...
Collection of PHP Interview questions
1. What is PHP? 2. What is the use of “echo” in php? 3. How to include a file to a php page? 4. What’s the differen...
URL Decode or HTML value decode in PHP
$districtid="East%20Godavari"; $districtid=utf8_decode(urldecode($districtid)); echo $districtid; Output : East Godavai
What is trait in PHP
Traits Traits reduce some limitations of single inheritance. In essence, traits are similar to abstract classes and can contain any numb...
How to increase php max execution time
ini_set('max_execution_time', 120); ini_set('max_execution_time', 2000);
Fecthing all the states in Country and store in database
Codeigniter controller <?php class Extract extends CI_Controller{ public function __construct(){ parent::__construct(); $thi...
Mavensoft Interview Questions
About Mavensoft Mavensoft is dynamic and growing IT Company with team of industry best Engineers working around the clock from...
How can I sort a multi-dimensional array in php
This can easily be done using the function in PHP that is called array_multisort. Here is an example of this function in action: <?php $...
Address auto fill city, state, district, country, pincode
//For State fill autofill $(document).on('blur','.auto',function(){ var address = $("input[name='address...
Replace all occurrences in javascript
The below is the function it will replaces all the occurrences by passing parameters function strReplaceAll(string, Find, Replace){ ...
Popular Posts
- Datetime picker in jquery simple example with dd/mm/yyyy format
- How to integrate SEND Grid with Codeigniter
- File Upload Conditions helper in Codeigniter
- Simple Login with Highlevel Security IN PHP using sessions
- Remove all special characters from a string
- How to use Sumo Select in jquery with example
- Create a HTML Program to divide the webpage into 4 Parts
- Detecting the Ajax request in Core PHP
- Pincode find API
- ZipArchive not found in aws or centos