Skip to content

変数名が「index」なのに配列になっている。 なんのデータが入っている配列なのか見通しが悪くなるので直したほうが良いかも? #9

Description

@yamato-sorariku

take-article.php

    //カテゴライズの配列をindexの昇順にするために揃える
    foreach ($categorizeTagsArray as $key => $row) {
        //indexの配列
        $index[$key]  = $row['index'];
        //タグの配列
        $keyword[$key]  = $row['tag_name'];
    }
    //tagをindexの昇順に変更
    array_multisort($index, SORT_ASC,$categorizeTagsArray);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions