Menu
PHP BABA LOGO
  • Home
  • Interview Questions
    • PHP String Interview Question
    • PHP Array Interview Qutions
    • jQuery Interview Quetions
    • PHP Interviwe Question on php.ini file
    • htaccess File Interview Quetions
  • About
PHP BABA LOGO

Tag: PHP String Interview Question

PHP String Interview Question

Question : Find number in a string? preg_replace(“/[^0-9]/”,””,$string); Return string filter_var($str, FILTER_SANITIZE_NUMBER_INT); preg_match_all(‘!\d+!’, $str, $matches); Return an array strpos() : Find the postion in string Example : echo strpos(“I love php, I love php too!”,”php”); Output: 7 strpos() : Finds the position of the first occurrence of a string inside another string (case-sensitive) stripos() : Finds the position…

Recent Posts

  • Platform Developer I Certification Maintenance (Winter ’25) July 16, 2025
  • Batch Class in Salesforce January 25, 2024
  • Platform Developer I Certification Maintenance (Winter ’24) Get Hands-on with Bind Variables in a SOQL Query December 19, 2023
  • How to check Salesforce current release version January 12, 2023
  • Salesforce Certification Coupons / Vouchers July 19, 2022
©2025 The Tech Paper | Powered by Abhinav Trivedi