{"version":"1.0","type":"rich","title":"Gist 4520140","description":"This example shows a comparison of two PHP code approaches for querying a database using the Yii framework. It contrasts a verbose CDbCriteria-based method with a more concise array-based syntax. The code demonstrates how both achieve the same result—finding posts with a price of 1—but through different API styles. The visualization highlights the structural difference between the two code snippets, rendering them side-by-side to emphasize the brevity of the second approach. The data source is the embedded PHP file itself, and the rendering relies on plain text formatting rather than any graphical library.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-4520140?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}