Code Baker

Make Thinks Easy For You

  • Home
  • PHP
  • jQuery
  • MySQL
  • HTML
  • Contact Us
  • Interview Question
    • PHP Interview

PHP Interview Question

PHP PHP Interview Question 

How to get minimum and maximum value from array

To get minimum value from array we used min() $dollar = array(‘9.22’, ‘5.32’, ‘102.58’); echo min($dollar); result : 5.32 echo

November 25, 2018 Harinder Singh
Read more
PHP PHP Interview Question 

Get last element of array

$arr = array( 4 => ‘apple’, 7 => ‘orange’, 13 => ‘plum’ ); Used end() echo end($arr); //echoes “plum”

November 25, 2018 Harinder Singh
Read more
PHP PHP Interview Question 

Get first element of array

$arr = array( 4 => ‘apple’, 7 => ‘orange’, 13 => ‘plum’ ); Used reset() echo reset($arr); //echoes “apple” If

November 25, 2018November 25, 2018 Harinder Singh
Read more
PHP Interview Question 

What is the difference between indexed and associative array?

The indexed array holds elements in an indexed form which is represented by number starting from 0 and incremented by

May 13, 2018 Harinder Singh
Read more
PHP Interview Question 

How to get the length of string?

The strlen() function is used to get the length of string.

May 13, 2018 Harinder Singh
Read more
PHP Interview Question 

What is the use of count() function in PHP?

The PHP count() function is used to count total elements in the array, or something an object.

May 13, 2018 Harinder Singh
Read more
PHP Interview Question 

How to do single and multi line comment in PHP?

PHP single line comment is done in two ways: Using // (C++ style single line comment) Using # (Unix Shell

May 13, 2018May 13, 2018 Harinder Singh
Read more
PHP Interview Question 

What are the ways to define a constant in PHP?

PHP constants are name or identifier that can’t be changed during execution of the script. PHP constants are defined in

May 13, 2018 Harinder Singh
Read more
PHP Interview Question 

What is the difference between “echo” and “print” in PHP?

Echo can output one or more string but print can only output one string and always returns 1. Echo is

May 13, 2018 Harinder Singh
Read more
PHP Interview Question 

List some of the features of PHP7.

Scalar type declarations Return type declarations Null coalescing operator (??) Spaceship operator Constant arrays using define() Anonymous classes Closure::call method

May 13, 2018 Harinder Singh
Read more
  • ← Previous

Recent Posts

  • npm ERR! Invalid dependency type requested: alias
  • Regular Expression to validate the Time Format in Javascript
  • Prevent submitting form by pressing the Enter key Vuejs
  • How to convert an Object to an Array in JavaScript
  • Export transactions require a customer name and address – Stripe Error

Categories

  • Article
  • CSS
  • Facebook
  • Firebase
  • git
  • HTML
  • Javascript
  • jQuery
  • Laravel
  • Linux
  • Mongo DB
  • MySQL
  • Nodejs
  • PHP
  • PHP Interview Question
  • Ubuntu
  • Vue Js
  • Webconfig

Tags

.htaccess click Code Baker codebaker Command cookie CSS Curl CURL PHP Date Datetime Delete cookie Demo example Facebook Facebook App Facebook Graph API Facebook token git Gmail Google Google reCAPTCHA HTML IP address Issue Javascript jQuery jQuery Events Laravel Linux Commands magic function magic methods mysql nodejs npm on click PHP php interview question plugin print Regex SSL Stripe Ubuntu VueJs

Tags

.htaccess click Code Baker codebaker Command cookie CSS Curl CURL PHP Date Datetime Delete cookie Demo example Facebook Facebook App Facebook Graph API Facebook token git Gmail Google Google reCAPTCHA HTML IP address Issue Javascript jQuery jQuery Events Laravel Linux Commands magic function magic methods mysql nodejs npm on click PHP php interview question plugin print Regex SSL Stripe Ubuntu VueJs

Most Viewed Posts

  • Setting initial/default value of a Vuetify checkbox
  • Dynamic Route added to CSS and JS paths on page refresh Webpack with Vuejs
  • How to convert an Object to an Array in JavaScript
  • Export transactions require a customer name and address – Stripe Error
  • How to change project port, if already in used

Site Tree

  • Contact Us
  • PHP Interview Questions

Recent Comments

  • Jake on jQuery click function not working
Copyright © 2023 Code Baker. All rights reserved.
Theme: ColorMag by ThemeGrill. Powered by WordPress.