John Davidson

php - Replace row name by variable

0 comments
Message:


In this code :


$structuredData->setRow_1__column_1($var1);

is there a way to replace Row_1 by a variable $row ?


https://pimcore.com/docs/pimcore/current/Development_Documentation/Objects/Object_Classes/Data_Types/Structured_Table.html



My Answer:
$structuredData->{$variable}

Rate this post

3 of 5 based on 5804 votes

Comments




© 2024 Hayatsk.info - Personal Blogs Platform. All Rights Reserved.
Create blog  |  Privacy Policy  |  Terms & Conditions  |  Contact Us