Is there a way to expand and collapse included PHP content?

Any code examples pls.
Member Avatar for diafol

Check out javascript hide/unhide toggles. This is a pretty standard technique by now.

Whether you actually put the content into the page in the first place will be down to php (or html if static text), but interactively displaying it or not will be down to css/js.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.