\documentclass[programming]{../../../mfcs}
\newcommand{\projectduedate}{Tuesday, May 2}
\newcommand{\quarter}{Spring 2017}
\usepackage{color}
\topic{Section 6: PHP}
\course{CSE 154}{Web Programming}{\quarter}
\NoDate
%\hasmarginnotes
\usepackage{csquotes}
\usepackage{multicol}
%\setlength{\columnseprule}{2pt}
\begin{document}
\vspace{-2.8em}

\hfill\begin{varwidth}{0.5\textwidth}
{\large {\bf\color{colour} Due Date:} \projectduedate}
\end{varwidth}
\newline
\begin{question}{0. Two is Better Than One}
\vspace{1.8em}
Write a PHP function that takes a parameter word (called with a \texttt{\$\_GET} parameter passed in) and outputs its stuttered form in HTML. A stuttered word has each of its characters duplicated once, maintaining character order from the original word.
\newline

\textbf{Example}: 
\newline
\begin{lstlisting}
stutter("pikachu"); 
stutter("aLAkaZAM");
\end{lstlisting}

Should produce the following output: 
\newline

\begin{lstlisting}
Your word stuttered is: ppiikkaacchhuu 
Your word stuttered is: aaLLAAkkaaZZAAMM
\end{lstlisting}

You should write your solution as if it were inside of your HTML page's body. In addition to writing
  \texttt{stutter}, you should provide an example call to the method, passing in the query
  parameter, where the url query should be \texttt{``word=''}. In the first example where
  ``pikachu'' is passed as a parameter, the url would be in the form:
  \texttt{http://somebaseurl.php?word=pikachu}. If the query is absent from the url, then nothing should be output in the method.
\end{question}
\end{document}
