<?php $pageId = '123-abc-def';$pageIdArr = [$pageId]; var_dump($pageIdArr);
Standard input is empty
array(1) { [0]=> string(11) "123-abc-def" }
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!