xxxxxxxxxx
<?php
# Change the ENUM contstraint for EmployeeRole to include a contractor role
$field = array(
'EmployeeRole' => array(
'type' => "ENUM",
'constraint' => ['Employee','Admin','Contractor'],
'default' => 'Employee'
)
);
# Modify the field
$this->dbforge->modify_column('Employees', $field);
xxxxxxxxxx
//Javascript
let text = "Hi! This is a text";
let searchedValue = "text";
console.log(text.includes(searchedValue)); //returns True
//Php
$text = "Hi! This is a text";
$searchedValue = "text";
echo(str_contains($text, $searchedValue)); //returns 1
//Python
text = "Hi! This is a text"
searchedValue = "text"
print(searchedValue in text) # returns True