Varun

Add new key-value pair to Dictionary in Python

This tutorial will discuss multiple ways to add new key-value pair to dictionary in Python. Table Of Contents Method 1: Using dict.update() method Method 2: Using [] Operator of Dictionary Method 1: Using dict.update() method To add a new key-value pair to a dictionary, we can use the update method of a dictionary. It accepts […]

Add new key-value pair to Dictionary in Python Read More »

Check if String Contains SubString (Case Insensitive) in PHP

This tutorial will discuss how to check if string contains substring (case insensitive) in PHP. To check if a string contains a substring in a case-insensitive manner in PHP, we can use the stripos() function. The stripos() function accepts two strings as arguments i.e. a string and a subString. It returns the index position of

Check if String Contains SubString (Case Insensitive) in PHP Read More »

Scroll to Top