Jump to content

SUBIECTE NOI
« 1 / 5 »
RSS
Merita achizitionat DFSK Fengon 5...

Pret actual invelitoare

Probleme baterie Samsung A54

Schema statie auto Renegade REN 1...
 Magazine IT de incredere

Parere SKODA Octavia 3 2.0TDI 150CP

Achizitie telefon 1000-1200lei

Unde gasesc o lampa buna pe gaz?
 Consulta specialiștii... Und...

Fostul director al Frontex: Comis...

Construire anexa lipita de casa

Ce folositi pentru urina mirosito...
 Socializare in prezenta copiilor

Cont Samsung A32

Hotarare definitiva a instantei, ...

Laptop office 2500 lei
 

Schimbare continut Array

- - - - -
  • Please log in to reply
1 reply to this topic

#1
bunicu9

bunicu9

    Member

  • Grup: Members
  • Posts: 253
  • Înscris: 14.07.2013
Am acest Array
$files_list = $space->ListObjects($Key);

print_r($files_list);
Imi afiseaza asta:
Array (
[0] => Array (
[Key] => uploads/photos/2021/04/demo_1b18b14418527864e0de08a47836d2a6.jpg
[LastModified] => 1618773484
[ETag] => \"bf5c32cfcc6a794f11e9ba0f2dbd6cac\"
[Size] => 51464
[StorageClass] => STANDARD
[Owner] => Array (
[DisplayName] => 4540860
[ID] => 4540860
)
)
[1] => Array (
[Key] => uploads/photos/2021/04/demo_d767cdd4d4f5aed9fc1dc54373fbdcec.jpg
[LastModified] => 1618776449
[ETag] => \"1b2f1b5790dea0e83383acb207ace636\"
[Size] => 84717
[StorageClass] => STANDARD
[Owner] => Array (
[DisplayName] => 4540860
[ID] => 4540860
)
)
[2] => Array (
[Key] => uploads/photos/2021/04/demo_e3b3c7c5fd24b1bfe4910cb0f51dc687.jpg
[LastModified] => 1618777905
[ETag] => \"bf5c32cfcc6a794f11e9ba0f2dbd6cac\"
[Size] => 51464
[StorageClass] => STANDARD
[Owner] => Array (
[DisplayName] => 4540860
[ID] => 4540860
)
)
)


Cum pot sterge uploads/ din acest Array ?

Am incercat
$files_source = str_replace("uploads/","",$files_list);
Nu se intampla nimic

Cum as putea transforma acest Array in format
Array (
[0] => photos/2021/04/demo_0c5673fa6854c82c3d97b412f0bf04c8.jpg
[1] => photos/2021/04/demo_e3b3c7c5fd24b1bfe4910cb0f51dc687.jpg
)

?

#2
_Smiley_

_Smiley_

    Guru Member

  • Grup: Senior Members
  • Posts: 19,943
  • Înscris: 24.02.2006
aici e raspunsul la problema ta: https://www.php.net/...types.array.php

Anunturi

Bun venit pe Forumul Softpedia!

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Forumul Softpedia foloseste "cookies" pentru a imbunatati experienta utilizatorilor Accept
Pentru detalii si optiuni legate de cookies si datele personale, consultati Politica de utilizare cookies si Politica de confidentialitate