Various useful functions for manipulating text

CloneableInstantiable
Methods
public static arrayToJS(array $array, string $stringQuote = '') : string
 
Converts a PHP array to a JavaScript array that can be used directly as JavaScript (not JSON)

    public static htmlentities(?string $string) : string
     
    Shorthand to encode a string in UTF-8

      public static unhtmlentities(?string $string) : string
       
      Decode hmtl entities

        Methods
        public static arrayToJS(array $array, string $stringQuote = '') : string
         
        Converts a PHP array to a JavaScript array that can be used directly as JavaScript (not JSON)

          public static htmlentities(?string $string) : string
           
          Shorthand to encode a string in UTF-8

            public static unhtmlentities(?string $string) : string
             
            Decode hmtl entities

              © 2020 Bruce Wells
              Search Namespaces \ Classes
              ConfigurationNumbers (0-9.) only