A_Z_Listing_Numbers::add_to_alphabet( string $alphabet )

Add numbers to the alphabet


Description


Parameters

$alphabet

(string) (Required) The alphabet to add numbers into.


Return

(string) The alphabet with numbers either prepended or appended


Source

File: classes/class-a-z-listing-numbers.php

	public function add_to_alphabet( $alphabet ) {
		$numbers = '0,1,2,3,4,5,6,7,8,9';
		if ( true === $this->group ) {
			$numbers = '0123456789';
		}

		if ( 'before' === $this->position ) {
			return join( ',', array( $numbers, $alphabet ) );
		}
		return join( ',', array( $alphabet, $numbers ) );
	}

Changelog

Changelog
Version Description
2.0.0 Introduced.

More Information

You are currently logged out. To view tickets you must first login.

I have read and understood the Terms of Service


User Contributed Notes

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.