Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Array
- (
- [Property] => Array
- (
- [S] => Built As Condominium
- )
- )
- Array
- (
- [property] => Built As Condominium
- )
- <?php
- $arr=Array ( 'Property' => Array ( 'S' => 'Built As Condominium' ) );
- foreach($arr as $k=>$arr1)
- {
- $arr[$k]=implode('',$arr1);
- }
- print_r($arr);
- $array['Property'] = $array['Property']['S'];
- Array ( [property] => Built As Condominium )
- $data = array(
- "Property" => array(
- "S" => "Built As Condominium"
- )
- );
- foreach($data as $key => $value) {
- if($key == "Property") {
- $normalized_data['Property'] = is_array($value) && isset($value['S']) ? $value['S'] : NULL;
- }
- }
- array(1) {
- ["property"]=>
- string(20) "Built As Condominium"
- }
- $array = Array ( 'Property' => Array ( 'S' => 'Built As Condominium' ) );
- foreach($array as &$value){
- $value=$value['S'];
- }
- $arr = array ('Property' => array( 'S' => 'Built As Condominium'));
- $new = array();
- foreach($arr as $key => $inner) {
- $new[$key] = reset($inner);
- }
- print_r($new);
- Array
- (
- [Property] => Built As Condominium
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement