Contents:
How to split a string by multiple delimiters in PHP?
what is your issue?
php function or js?
How to split a string by multiple delimiters in PHP?
what is your issue?
php function or js?
Mayank_theDevloper 2020-08-06 19:52:54
hi @S23G28 I think you are looking for this
https://stackoverflow.com/questions/1452777/how-to-split-a-string-by-multiple-delimiters-in-php
https://stackoverflow.com/questions/1452777/how-to-split-a-string-by-multiple-delimiters-in-php
maybe its helpful for you please check link
How to split a string by multiple delimiters in PHP? – Stack Overflow
“something here ; and there, oh,that’s all!”
“something here ; and there, oh,that’s all!”
I want to split it by ; and ,
so after processing should get:
something here
and there
oh
that’s all!
Goelkartik62 2020-08-06 19:58:16
Let me check it.
Goelkartik62 2020-08-06 19:58:17
Wait
Goelkartik62 2020-08-06 20:08:47
$string = “key=7,age=23”;
$array = explode(‘,’,$string);
$result = array();
foreach($array as $value){
$data = explode(‘=’,$value);
array_push($result,$data[0],$data[1]);
}
echo ‘<pre>’;
print_r($result);
Goelkartik62 2020-08-06 20:09:06
Please check this code… may be it is useful for you..
Goelkartik62 2020-08-06 20:10:38

rohit267 2020-08-06 20:29:21
next time better use json instead of this type of strings
rohit267 2020-08-06 20:49:43
ask the owner to change it to a json array
2020-08-06 23:20:45

how to insert data into database using multiselect checkbox with multiples rows
π 2020-08-07 07:53:18
Thank you rose
π 2020-08-07 07:58:31
I have a problem in angularjs
π 2020-08-07 08:01:45

When I click item view button it show related data particular person
π 2020-08-07 08:07:37

This data show which companieβs item sold particular persons
π 2020-08-07 08:07:37

This data show related person how many item sold particular person . Common Iβd is here βpidβ
π 2020-08-07 08:07:37

This data show in screen above pic
π 2020-08-07 08:07:53
Data base ππ»
π 2020-08-07 08:13:23

After controller this is my sql file where data fetch from dB
π 2020-08-07 08:13:23

This is controller 1 one function for load data of profile of person and second one show data particular person item sold but I confused
π 2020-08-07 08:13:23

Item view button here
π 2020-08-07 08:13:24

This is my file to show data
π 2020-08-07 08:13:32
This is all about
π 2020-08-07 08:13:37
Please help me
π 2020-08-07 08:13:43
Guys
π 2020-08-07 08:15:38
If u any problem to understand please let me know
rohit267 2020-08-07 08:16:56
π 2020-08-07 08:15:38
If u any problem to understand please let me know
what is your issue?
rohit267 2020-08-07 08:20:33
explain in a proper way
π 2020-08-07 08:20:54
How
π 2020-08-07 08:23:24
I try to explain this
First see the pic of all three table of dB
Then go coding pic follow series
1) profile.php where I Made a button which name is item view
First see the pic of all three table of dB
Then go coding pic follow series
1) profile.php where I Made a button which name is item view
π 2020-08-07 08:24:55
Then custom.php where I create controller in this we have two functions first load data to profile table in my first laptop pic
π 2020-08-07 08:27:06
Then second function I just send Iβd to another page which name is items.php through the button click. I store is in variable $scope. Id and send
π 2020-08-07 08:30:00
Then go third file item view file which name is item.php where I call function in ng-init=βload_item(ββ.$id.ββ);
π 2020-08-07 08:31:10
In third one file I get is in $id variable and pass through function
π 2020-08-07 08:31:54
And four file load_item.php
π 2020-08-07 08:32:04
Where I write my query
π 2020-08-07 08:32:54
I want to pass Iβd through function() in fourth file
π 2020-08-07 08:33:00
But how
π 2020-08-07 08:33:40
I hope I try my best
rohit267 2020-08-07 08:35:45
π 2020-08-07 08:32:54
I want to pass Iβd through function() in fourth file
php function or js?
π 2020-08-07 08:36:04
Function
π 2020-08-07 08:36:12
Wait I send pic
rohit267 2020-08-07 08:36:27
π 2020-08-07 08:36:04
Function
php function or JavaScript function
rohit267 2020-08-07 08:36:30
oh god
π 2020-08-07 08:36:32

rohit267 2020-08-07 08:36:57
π 2020-08-07 08:36:32
its correct
rohit267 2020-08-07 08:37:01
what’s the issue
π 2020-08-07 08:37:48
But data is not showing in item. Php
rohit267 2020-08-07 08:38:20
any Angular guy help him please
π 2020-08-07 08:40:41

π 2020-08-07 08:41:12
See in inspector bar
π 2020-08-07 08:44:43
Iβd value is there but additional ββ+ also there