BED-Con talk Convert PHP code