getting selected strings within another string
-
Hi,
My Plugin is creating a string with the following value.
:11:{i:0;s:14:"General public";i:1;s:24:"Educational institutions";i:2;s:16:"Large enterprise";i:3;s:15:"Local authority";i:4;s:15:"Local community";i:5;s:24:"Professional association";i:6;s:25:"Professional organization";i:7;s:20:"Research institution";i:8;s:30:"Small and Medium sized company";i:9;s:15:"Training center";i:10;s:30:"Young people between 15 and 25";}
Now, I want only these values between the ” “, which are for example:-
– General public
– Educational institutions
– Large enterprise
– …So basically a function that would allow me to put the values between ” and ” into some array.
Could you help me building a function in PHP like this? or may be there is some built in action which I cant find ??
Many Thanks
- The topic ‘getting selected strings within another string’ is closed to new replies.