Search
 
SCRIPT & CODE EXAMPLE
 

PHP

how to re assign value of associative array after assign in php

$employee = [
	"bill" => 25,
    "steve" => 36,
    "alice"=>44
];

$employee["alice"] = 48;
$employee["musk"] = 42;//to add 
echo "<pre>";
print_r ($employee);
echo "</pre>";
Comment

PREVIOUS NEXT
Code Example
Php :: php loop through obect 
Php :: upgrade php 7.3 to 7.4 
Php :: octobercms mail 
Php :: Token capabilities in vault 
Php :: php insert in array 
Php :: laravel add many to many 
Php :: guzzlehttp http_errors get 
Php :: Laravel get all parent categories for each category 
Php :: phpmyadmin mysql execution time 
Php :: Web servers supported by php 
Php :: laravel display category post by slug 
Php :: htaccess after trailing slash page return status 200 
Php :: install php56 with php73 catalina 
Php :: workpress change page title from shortcode 
Php :: clear log file laravel 
Php :: Csv To AssoT Php 
Php :: php convert accented characters to html entities 
Php :: php find all subclasses of class 
Php :: bool value of blank string inp php 
Php :: php sms sending script 
Php :: laravel execute command arguments 
Php :: laravel 8 php version requirements 
Php :: php replace url parameter value 
Php :: magento check which user has added a product 
Php :: model not found laravel 
Php :: what is the use of closure function in php 
Php :: laravel blade for if 
Php :: laravel field types from database field type 
Php :: if php 
Php :: how to run php in javascript 
ADD CONTENT
Topic
Content
Source link
Name
1+3 =